sndobj-devel Mailing List for The Sound Object Library (Page 13)
Status: Abandoned
Brought to you by:
veplaini
This list is closed, nobody may subscribe to it.
2007 |
Jan
(57) |
Feb
(16) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
(8) |
Aug
(24) |
Sep
(12) |
Oct
(4) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(9) |
Feb
(13) |
Mar
(3) |
Apr
(10) |
May
(11) |
Jun
(12) |
Jul
(8) |
Aug
(9) |
Sep
(1) |
Oct
(24) |
Nov
(11) |
Dec
(19) |
2009 |
Jan
(5) |
Feb
(24) |
Mar
(43) |
Apr
(9) |
May
(14) |
Jun
(28) |
Jul
|
Aug
(6) |
Sep
|
Oct
(4) |
Nov
(10) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
|
2011 |
Jan
(3) |
Feb
(3) |
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: bosko m. <bmi...@ya...> - 2008-01-26 20:19:38
|
Hi! How can I put wav file into table so I can read it with lookup? Which object to use? SndTable is for raw files. So which one is for wav? Thanks Bosko ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: victor <Vic...@nu...> - 2008-01-06 23:06:33
|
you can use Unit() to generate a constant signal and Mixer() to add it. ----- Original Message ----- From: "bosko milakovic" <bmi...@ya...> To: "sndobj-devel" <snd...@li...> Sent: Sunday, January 06, 2008 10:35 PM Subject: [Sndobj-devel] Simple signal math > Hi! > > How can I add a scalar to signal? > I was trying this: > import sndobj > > tab = sndobj.HarmTable() > osc = sndobj.Oscili(tab, 440, 1000) > output = sndobj.SndRTIO(1, sndobj.SND_OUTPUT); > for i in > range(3*int(sndobj.DEF_SR/sndobj.DEF_VECSIZE)): > osc = osc + 2 > osc.DoProcess(); > osc>>output > > but it's not good. Also I was trying examples from > manual but with no luck. > > Thanks. > > Bosko > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: bosko m. <bmi...@ya...> - 2008-01-06 22:35:15
|
Hi! How can I add a scalar to signal? I was trying this: import sndobj tab = sndobj.HarmTable() osc = sndobj.Oscili(tab, 440, 1000) output = sndobj.SndRTIO(1, sndobj.SND_OUTPUT); for i in range(3*int(sndobj.DEF_SR/sndobj.DEF_VECSIZE)): osc = osc + 2 osc.DoProcess(); osc>>output but it's not good. Also I was trying examples from manual but with no luck. Thanks. Bosko ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: victor <Vic...@nu...> - 2007-12-12 22:07:39
|
Two things: 1. you'll need more volume, 20dB is not enough. Try 96dB 2. don't forget to add gn to the thread. I get sound here with this: import time import sndobj tab = sndobj.HarmTable() osc = sndobj.Oscili(tab,400,400*5) phas = sndobj.Phase(400,osc) readp = sndobj.Lookupi(tab, 0, phas) gb = sndobj.Gain(96, readp) outp = sndobj.SndRTIO(1) outp.SetOutput(1, gb) thread = sndobj.SndThread() thread.AddObj(osc) thread.AddObj(phas) thread.AddObj(readp) thread.AddObj(gb) thread.AddObj (outp, sndobj.SNDIO_OUT) thread.ProcOn() time.sleep(3) thread.ProcOff() ----- Original Message ----- From: "bosko milakovic" <bmi...@ya...> To: "victor" <Vic...@nu...>; "Bosko&Toma Milakovic" <bos...@gm...>; <snd...@li...> Sent: Wednesday, December 12, 2007 9:24 PM Subject: Re: [Sndobj-devel] Phase modulation > Thanks, but it doesn't work. > I've added a Gain: > readp = sndobj.Lookupi(tab, 0, phas) > gn = sndobj.Gain(20, readp) > > and also to output: > > outp = sndobj.SndRTIO(1) > outp.SetOutput(1, gn) > > but still no sound. > > Any other ideas? > > Bosko > > > > > --- victor <Vic...@nu...> wrote: > >> The readp output needs to be amplified. Add >> a Gain object and output the signal from Gain. >> >> Victor >> ----- Original Message ----- >> From: Bosko&Toma Milakovic >> To: snd...@li... >> Sent: Tuesday, December 11, 2007 11:25 PM >> Subject: [Sndobj-devel] Phase modulation >> >> >> Hi! >> >> I'm stuck. I was trying an example of phase >> modulation from manual in Python: >> import sndobj >> import time >> >> tab = sndobj.HarmTable() >> osc = sndobj.Oscili(tab,400,1000) >> phas = sndobj.Phase(150,osc) >> readp = sndobj.Lookupi(tab, 0, phas) >> >> outp = sndobj.SndRTIO(1) >> outp.SetOutput(1, readp) >> >> thread = sndobj.SndThread() >> thread.AddObj(osc) >> thread.AddObj(phas) >> thread.AddObj(readp) >> >> thread.AddObj (outp, sndobj.SNDIO_OUT) >> thread.ProcOn() >> time.sleep(3) >> thread.ProcOff() >> >> This doesn't make any sound. Any idea what is >> wrong with it? >> >> Thanks. >> >> Bosko >> >> >> >> > ------------------------------------------------------------------------------ >> >> >> >> > ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> >> >> > ------------------------------------------------------------------------------ >> >> >> _______________________________________________ >> Sndobj-devel mailing list >> Snd...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel >> > > ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php> > _______________________________________________ >> Sndobj-devel mailing list >> Snd...@li... >> > https://lists.sourceforge.net/lists/listinfo/sndobj-devel >> > > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: bosko m. <bmi...@ya...> - 2007-12-12 21:25:10
|
Thanks, but it doesn't work. I've added a Gain: readp = sndobj.Lookupi(tab, 0, phas) gn = sndobj.Gain(20, readp) and also to output: outp = sndobj.SndRTIO(1) outp.SetOutput(1, gn) but still no sound. Any other ideas? Bosko --- victor <Vic...@nu...> wrote: > The readp output needs to be amplified. Add > a Gain object and output the signal from Gain. > > Victor > ----- Original Message ----- > From: Bosko&Toma Milakovic > To: snd...@li... > Sent: Tuesday, December 11, 2007 11:25 PM > Subject: [Sndobj-devel] Phase modulation > > > Hi! > > I'm stuck. I was trying an example of phase > modulation from manual in Python: > import sndobj > import time > > tab = sndobj.HarmTable() > osc = sndobj.Oscili(tab,400,1000) > phas = sndobj.Phase(150,osc) > readp = sndobj.Lookupi(tab, 0, phas) > > outp = sndobj.SndRTIO(1) > outp.SetOutput(1, readp) > > thread = sndobj.SndThread() > thread.AddObj(osc) > thread.AddObj(phas) > thread.AddObj(readp) > > thread.AddObj (outp, sndobj.SNDIO_OUT) > thread.ProcOn() > time.sleep(3) > thread.ProcOff() > > This doesn't make any sound. Any idea what is > wrong with it? > > Thanks. > > Bosko > > > > ------------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php> _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: victor <Vic...@nu...> - 2007-12-12 08:29:39
|
The readp output needs to be amplified. Add a Gain object and output the signal from Gain. Victor ----- Original Message ----- From: Bosko&Toma Milakovic To: snd...@li... Sent: Tuesday, December 11, 2007 11:25 PM Subject: [Sndobj-devel] Phase modulation Hi! I'm stuck. I was trying an example of phase modulation from manual in Python: import sndobj import time tab = sndobj.HarmTable() osc = sndobj.Oscili(tab,400,1000) phas = sndobj.Phase(150,osc) readp = sndobj.Lookupi(tab, 0, phas) outp = sndobj.SndRTIO(1) outp.SetOutput(1, readp) thread = sndobj.SndThread() thread.AddObj(osc) thread.AddObj(phas) thread.AddObj(readp) thread.AddObj (outp, sndobj.SNDIO_OUT) thread.ProcOn() time.sleep(3) thread.ProcOff() This doesn't make any sound. Any idea what is wrong with it? Thanks. Bosko ------------------------------------------------------------------------------ ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ------------------------------------------------------------------------------ _______________________________________________ Sndobj-devel mailing list Snd...@li... https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: Bosko&Toma M. <bos...@gm...> - 2007-12-11 23:25:35
|
Hi! I'm stuck. I was trying an example of phase modulation from manual in Python: import sndobj import time tab = sndobj.HarmTable() osc = sndobj.Oscili(tab,400,1000) phas = sndobj.Phase(150,osc) readp = sndobj.Lookupi(tab, 0, phas) outp = sndobj.SndRTIO(1) outp.SetOutput(1, readp) thread = sndobj.SndThread() thread.AddObj(osc) thread.AddObj(phas) thread.AddObj(readp) thread.AddObj(outp, sndobj.SNDIO_OUT) thread.ProcOn() time.sleep(3) thread.ProcOff() This doesn't make any sound. Any idea what is wrong with it? Thanks. Bosko |
From: '2+ <ele...@gm...> - 2007-12-11 12:05:54
|
maybe am taking something wrong but did the scons again and then did the next thing $ g++ -o python/_sndobj.so -bundle -framework python -framework coreaudio python/AudioDefs_wrap.os -Llib -lsndobj -lSystem ld: Undefined symbols: _fstatvfs referenced from Python expected to be defined in libSystem _lchown referenced from Python expected to be defined in libSystem _statvfs referenced from Python expected to be defined in libSystem hmmm ... maybe this is too much for me to figure out yes i have your bin for python2.3 so will use 2.3 when doing PySndObj thanx On 12/11/07, victor <Vic...@nu...> wrote: > Try to run the line > > g++ -o python/_sndobj.so -bundle -framework python -framework coreaudio > python/AudioDefs_wrap.os > -Llib -lsndobj -lSystem > > from your command-line to see if it does anything. The error message seems > to indicate > that you need to link to libSystem. > > Another thing you can try is to remove your MacPython 2.5 installation and > re-build with > Apple's supplied Python 2.3 that is in your system. This was the version I > always used on > OSX (10.3.9 included). > > Victor > > > ----- Original Message ----- > From: "'2+" <ele...@gm...> > To: <snd...@li...> > Sent: Tuesday, December 11, 2007 1:18 AM > Subject: [Sndobj-devel] scons @ osx10.3.9 > > > > this might be too vague but if someone can help me ... that's plz > > > > am on osx10.3.9 > > and wanted to do the pysndobj thing > > > > so installed > > xcode1.5 > > swig-1.3.33 > > python2.5.1 > > > > and did the scons pythonmodule=yes@ SndObj-2.6.5 > > > > then came: > > > > ---8<--- > > > > generating wrappers... > > g++ -o python/AudioDefs_wrap.os -c -O3 -fPIC -DWORDS_BIGENDIAN > > -DMACOSX -DSWIG -DPYTHON_WRAP > > -I/System/Library/Frameworks/Python.framework/Headers > > -I/Library/Frameworks/Python.framework/Headers -Isrc -Iinclude > > -Iinclude/rfftw > > -I/system/library/Frameworks/CoreAudio.framework/Headers > > python/AudioDefs_wrap.cc > > g++ -o python/_sndobj.so -bundle -framework python -framework > > coreaudio python/AudioDefs_wrap.os -Llib -lsndobj > > ld: Undefined symbols: > > _fstatvfs referenced from Python expected to be defined in libSystem > > _lchown referenced from Python expected to be defined in libSystem > > _statvfs referenced from Python expected to be defined in libSystem > > scons: *** [python/_sndobj.so] Error 1 > > scons: building terminated because of errors. > > > > ---8<--- > > > > -- > > '2+ > > http://micro.ispretty.com > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Sndobj-devel mailing list > > Snd...@li... > > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > > -- '2+ http://micro.ispretty.com |
From: victor <Vic...@nu...> - 2007-12-11 08:22:44
|
Try to run the line g++ -o python/_sndobj.so -bundle -framework python -framework coreaudio python/AudioDefs_wrap.os -Llib -lsndobj -lSystem from your command-line to see if it does anything. The error message seems to indicate that you need to link to libSystem. Another thing you can try is to remove your MacPython 2.5 installation and re-build with Apple's supplied Python 2.3 that is in your system. This was the version I always used on OSX (10.3.9 included). Victor ----- Original Message ----- From: "'2+" <ele...@gm...> To: <snd...@li...> Sent: Tuesday, December 11, 2007 1:18 AM Subject: [Sndobj-devel] scons @ osx10.3.9 > this might be too vague but if someone can help me ... that's plz > > am on osx10.3.9 > and wanted to do the pysndobj thing > > so installed > xcode1.5 > swig-1.3.33 > python2.5.1 > > and did the scons pythonmodule=yes@ SndObj-2.6.5 > > then came: > > ---8<--- > > generating wrappers... > g++ -o python/AudioDefs_wrap.os -c -O3 -fPIC -DWORDS_BIGENDIAN > -DMACOSX -DSWIG -DPYTHON_WRAP > -I/System/Library/Frameworks/Python.framework/Headers > -I/Library/Frameworks/Python.framework/Headers -Isrc -Iinclude > -Iinclude/rfftw > -I/system/library/Frameworks/CoreAudio.framework/Headers > python/AudioDefs_wrap.cc > g++ -o python/_sndobj.so -bundle -framework python -framework > coreaudio python/AudioDefs_wrap.os -Llib -lsndobj > ld: Undefined symbols: > _fstatvfs referenced from Python expected to be defined in libSystem > _lchown referenced from Python expected to be defined in libSystem > _statvfs referenced from Python expected to be defined in libSystem > scons: *** [python/_sndobj.so] Error 1 > scons: building terminated because of errors. > > ---8<--- > > -- > '2+ > http://micro.ispretty.com > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: '2+ <ele...@gm...> - 2007-12-11 01:18:14
|
this might be too vague but if someone can help me ... that's plz am on osx10.3.9 and wanted to do the pysndobj thing so installed xcode1.5 swig-1.3.33 python2.5.1 and did the scons pythonmodule=yes@ SndObj-2.6.5 then came: ---8<--- generating wrappers... g++ -o python/AudioDefs_wrap.os -c -O3 -fPIC -DWORDS_BIGENDIAN -DMACOSX -DSWIG -DPYTHON_WRAP -I/System/Library/Frameworks/Python.framework/Headers -I/Library/Frameworks/Python.framework/Headers -Isrc -Iinclude -Iinclude/rfftw -I/system/library/Frameworks/CoreAudio.framework/Headers python/AudioDefs_wrap.cc g++ -o python/_sndobj.so -bundle -framework python -framework coreaudio python/AudioDefs_wrap.os -Llib -lsndobj ld: Undefined symbols: _fstatvfs referenced from Python expected to be defined in libSystem _lchown referenced from Python expected to be defined in libSystem _statvfs referenced from Python expected to be defined in libSystem scons: *** [python/_sndobj.so] Error 1 scons: building terminated because of errors. ---8<--- -- '2+ http://micro.ispretty.com |
From: Victor L. <Vic...@nu...> - 2007-12-02 23:11:56
|
you need to use a floatArray object instead. Victor > > > Hi! > > I'm having difficulties with object EnvTable. With this: > > points = [1000,1000,0] > lens = [30,30,30] > env = sndobj.EnvTable(100, 3, 0, points, lens) > > I get an error that there's wrong number of arguments. > When I change it to this: > > env = sndobj.EnvTable() > env.SetEnvelope(3, 0, points, lens, 0) > > I get error that argument 4 of type 'float *' > > I also tried to convert points and lens lists to floats > but that didn't helped.... > > What am I doing wrong? > > Thanks > > Bosko > > > ---------------------------------------------------------- > --------------- SF.Net email is sponsored by: The Future > of Linux Business White Paper from Novell. From the > desktop to the data center, Linux is going mainstream. > Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Bosko&Toma M. <bos...@gm...> - 2007-12-02 21:54:19
|
Hi! I'm having difficulties with object EnvTable. With this: points = [1000,1000,0] lens = [30,30,30] env = sndobj.EnvTable(100, 3, 0, points, lens) I get an error that there's wrong number of arguments. When I change it to this: env = sndobj.EnvTable() env.SetEnvelope(3, 0, points, lens, 0) I get error that argument 4 of type 'float *' I also tried to convert points and lens lists to floats but that didn't helped.... What am I doing wrong? Thanks Bosko |
From: Jamie B. <ja...@po...> - 2007-11-30 18:41:35
|
On Fri, 2007-11-30 at 17:35 +0000, Jamie Bullock wrote: > > Using SndJackIO is even worse: after the script finishes execution, the > JACK server hangs with the glitchy sine wave seemingly stuck in its > buffer. > > BTW, I don't think this is an issue with my laptop/audio config, I > generally operate PD with a blocksize of 64, with no troubles. One further piece of information: I can confirm that this is libsndobj issue, and not specifically a pysndobj issue. I get the same trouble: stuttering audio, with the C++ examples e.g. streson. In fact with streson, the problem is slightly worse. Jamie -- www.postlude.co.uk |
From: Jamie B. <ja...@po...> - 2007-11-30 17:35:18
|
On Tue, 2007-11-27 at 12:16 +0000, Victor Lazzarini wrote: > Perhaps you would need to adjust buffer sizes etc with the alsa > module. In my experience all works very well with both alsa and > jack, but jack perhaps the best for latency. But also, in my laptop, with > Fedora, I have been running very small buffers with alsa, without > any problems. > > What you describe is basically the fact that the computer is not > keeping up with the audio card, so causing dropouts. > In that case something is definitely wrong, either with my sndobj install, or with my pysndobj code. Even with a buffer size as big as 8192, I still get a few clicks when using the ALSA module. OTOH, I can get completely clean sound with a buffer size of 128, on the same laptop under OS X. FWIW, here's the test code: import sndobj import time outtype = 'ALSA' tab = sndobj.HarmTable() if outtype is 'JACK': osc = sndobj.Oscili(tab, 440, 0.2) outp = sndobj.SndJackIO('sine', 1, sndobj.SND_IO) else: osc = sndobj.Oscili(tab, 440, 2000) outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 8192) mod = sndobj.Oscili(tab, 44, 2) osc.SetFreq(440) outp.SetOutput(1, osc) thread = sndobj.SndThread() thread.AddObj(osc) thread.AddObj(outp, sndobj.SNDIO_OUT) thread.ProcOn() time.sleep(10) thread.ProcOff() Using SndJackIO is even worse: after the script finishes execution, the JACK server hangs with the glitchy sine wave seemingly stuck in its buffer. BTW, I don't think this is an issue with my laptop/audio config, I generally operate PD with a blocksize of 64, with no troubles. -- www.postlude.co.uk |
From: Victor L. <Vic...@nu...> - 2007-11-29 09:15:18
|
On Windows, soundcards are listed by number. You can run SndObj.ListDevices() to get a list of MME devices and then use the number as the device number argument to the SndRTIO object constructor (look at the manual). Victor eg: >>> sndobj.ListDevices() Input devices: device ID: device name 0 : Aureal Audio 1 : SoundMAX Digital Audio 2 : M-Audio Quattro Output devices: device ID: device name 0 : Aureal Audio 1 : SoundMAX Digital Audio 2 : M-Audio Quattro At 16:33 28/11/2007, :murb: (maarten brouwers) wrote: >Dear pySndObj-developers, > >While I am not an advanced programmer, I use the scripting language python >quite often to make prototypes. For a project I am working on now, I need >more advanced sound output, for which I thought pySndObj was most >appropriate/up-to-date. I am running Python 2.5. > >What I would like to have is multiple channels of audio through >non-standard (not selected as default in Window's Configuration Panel) >soundcards simultaneously in Windows. Code I am testing with is included >below (note this is my first time I ever have done something with >pySndObj). > > >From the C++ documentation (p. 161) I derived that I somehow need to >create a SndObject that needs to be passed to SndRTIO, containing >information about the other soundcard... but it is unclear to me how to >accomplish this in python. A typical error I get is: > >NotImplementedError: Wrong number of arguments for overloaded function >'new_SndRTIO'. > Possible C/C++ prototypes are: > SndRTIO(short,int,int,int,int,SndObj **,int,float,int) > SndRTIO(short,int,int,int,int,SndObj **,int,float) > SndRTIO(short,int,int,int,int,SndObj **,int) > SndRTIO(short,int,int,int,int,SndObj **) > ... > >Could someone help me out? Thank you very much in forward! > >Yours, > > >Maarten Brouwers > >----the python code---- >import sndobj >import time >import sys > >wavfile = sndobj.SndWave('anger.wav', 3, 1,16) >wavsound = sndobj.SndIn(wavfile,1) >#SndRTIO(short,int,int,int,int,SndObj **,int,float,int) >objs = sndobj.intArray(1) >objs[0] = 256 >objs[1] = 48000 >objs[2] = 2 >objp = objs.cast() >#outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 128, 20, sndobj.SHORTSAM, objp) >outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT) > >outp.SetOutput(1, wavsound) > > >IT = sndobj.SndThread() > >IT.AddObj(wavfile,sndobj.SNDIO_IN) >IT.AddObj(wavsound) >IT.AddObj(outp, sndobj.SNDIO_OUT) > >IT.ProcOn() >time.sleep(2) >IT.ProcOff() > > >------------------------------------------------------------------------- >SF.Net email is sponsored by: The Future of Linux Business White Paper >from Novell. From the desktop to the data center, Linux is going >mainstream. Let it simplify your IT future. >http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 >_______________________________________________ >Sndobj-devel mailing list >Snd...@li... >https://lists.sourceforge.net/lists/listinfo/sndobj-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
From: :murb: (m. brouwers) <ho...@mu...> - 2007-11-28 16:34:01
|
Dear pySndObj-developers, While I am not an advanced programmer, I use the scripting language python quite often to make prototypes. For a project I am working on now, I need more advanced sound output, for which I thought pySndObj was most appropriate/up-to-date. I am running Python 2.5. What I would like to have is multiple channels of audio through non-standard (not selected as default in Window's Configuration Panel) soundcards simultaneously in Windows. Code I am testing with is included below (note this is my first time I ever have done something with pySndObj). >From the C++ documentation (p. 161) I derived that I somehow need to create a SndObject that needs to be passed to SndRTIO, containing information about the other soundcard... but it is unclear to me how to accomplish this in python. A typical error I get is: NotImplementedError: Wrong number of arguments for overloaded function 'new_SndRTIO'. Possible C/C++ prototypes are: SndRTIO(short,int,int,int,int,SndObj **,int,float,int) SndRTIO(short,int,int,int,int,SndObj **,int,float) SndRTIO(short,int,int,int,int,SndObj **,int) SndRTIO(short,int,int,int,int,SndObj **) ... Could someone help me out? Thank you very much in forward! Yours, Maarten Brouwers ----the python code---- import sndobj import time import sys wavfile = sndobj.SndWave('anger.wav', 3, 1,16) wavsound = sndobj.SndIn(wavfile,1) #SndRTIO(short,int,int,int,int,SndObj **,int,float,int) objs = sndobj.intArray(1) objs[0] = 256 objs[1] = 48000 objs[2] = 2 objp = objs.cast() #outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 128, 20, sndobj.SHORTSAM, objp) outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT) outp.SetOutput(1, wavsound) IT = sndobj.SndThread() IT.AddObj(wavfile,sndobj.SNDIO_IN) IT.AddObj(wavsound) IT.AddObj(outp, sndobj.SNDIO_OUT) IT.ProcOn() time.sleep(2) IT.ProcOff() |
From: Victor L. <Vic...@nu...> - 2007-11-28 09:05:25
|
SndWave::Output() will return a single sample from a single channel in an output block (after a Read operation). This is a method inherited from SndIO. If you connect a SndIn object to a SndWave channel, then you have several ways of getting samples (see the man page for the SndObj class) Victor > > > > I am not sure if this is possible, since the signals are > internal, but is there a way to access the signal samples > individually or in groups? Say if I load in a sound file > into a SndWave object, can I access the sample values? > > > ---------------------------------------------------------- > --------------- SF.Net email is sponsored by: The Future > of Linux Business White Paper from Novell. From the > desktop to the data center, Linux is going mainstream. > Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: siris p. <sir...@gm...> - 2007-11-28 02:06:41
|
I am not sure if this is possible, since the signals are internal, but is there a way to access the signal samples individually or in groups? Say if I load in a sound file into a SndWave object, can I access the sample values? |
From: Victor L. <Vic...@nu...> - 2007-11-27 12:17:09
|
Perhaps you would need to adjust buffer sizes etc with the alsa module. In my experience all works very well with both alsa and jack, but jack perhaps the best for latency. But also, in my laptop, with Fedora, I have been running very small buffers with alsa, without any problems. What you describe is basically the fact that the computer is not keeping up with the audio card, so causing dropouts. Victor At 12:10 27/11/2007, Jamie Bullock wrote: >Hi all, > >I'm interested in using pysndobj to do some audio development work. I've >managed compile everything from CVS without a hitch - nice work with the >build system! > >I have it working and it sounds nice on OS X. However, on GNU/Linux the >audio quality is dreadful with the audio breaking up, and lots of >clicks. I get this with the default audio driver (alsa?). The problem is >worse using Jack - I just get a load of clicks where a sine wave should >be! > >Ubuntu Gutsy (2.6.20-16-lowlatency) > >scons pythonmodule=True > >Anyone got any suggestions about how to fix this. I'm new to >sndobj/pysndobj. > >Thanks, > >Jamie > >-- >www.postlude.co.uk > > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Sndobj-devel mailing list >Snd...@li... >https://lists.sourceforge.net/lists/listinfo/sndobj-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
From: Jamie B. <ja...@po...> - 2007-11-27 12:10:43
|
Hi all, I'm interested in using pysndobj to do some audio development work. I've managed compile everything from CVS without a hitch - nice work with the build system! I have it working and it sounds nice on OS X. However, on GNU/Linux the audio quality is dreadful with the audio breaking up, and lots of clicks. I get this with the default audio driver (alsa?). The problem is worse using Jack - I just get a load of clicks where a sine wave should be! Ubuntu Gutsy (2.6.20-16-lowlatency) scons pythonmodule=True Anyone got any suggestions about how to fix this. I'm new to sndobj/pysndobj. Thanks, Jamie -- www.postlude.co.uk |
From: Victor L. <Vic...@nu...> - 2007-11-11 11:20:34
|
Multiplication by scalars can be done with Gain() and multiplication of signals with Ring(). Victor > > Hi! > > How can do some simple math operations with > signals(multiplication, sum..) in Python? > For example like in PD when osc~ is multiplied with 0.5 > the amplitude is half lower... > In sndobj manual I found it under sndobj class but when I > tried it it didn't work. Probably for Python it has to > done in different way(?). > > Thanks. > > Bosko > > ---------------------------------------------------------- > --------------- This SF.net email is sponsored by: Splunk > Inc. Still grepping through log files to find problems? > Stop. Now Search log events and configuration files using > AJAX and a browser. Download your FREE copy of Splunk now > >> http://get.splunk.com/ > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: Bosko&Toma M. <bos...@gm...> - 2007-11-11 10:41:12
|
Hi! How can I do some simple math operations with signals(multiplication,sum) in Python? For example like in PD when osc~ is multiplied with 0.5 the amplitude is half lower... In sndobj manual I found it under sndobj class but when I tried it it didn't work. Probably for Python it has to be done in different way(?). Thanks Bosko |
From: Bosko&Toma M. <bos...@gm...> - 2007-11-11 10:33:47
|
Hi! How can do some simple math operations with signals(multiplication, sum..) in Python? For example like in PD when osc~ is multiplied with 0.5 the amplitude is half lower... In sndobj manual I found it under sndobj class but when I tried it it didn't work. Probably for Python it has to done in different way(?). Thanks. Bosko |
From: Renato F. <ren...@gm...> - 2007-10-08 03:47:39
|
hi, bellow is a link, an ongoing work of a tutorial for audio manipulations using python. Its ideally directed to non-programmers with some basic knowledge of physics and sound manipulation processes. There is a part dedicated to PySndObj, part 4- The PySndObj module. Is that ok? You can think of the reader as capable of follow what is on part 2 (about python from zero). And part 3 (using the standard library for audio). Some "from sin to modulating FMs" PySndObj scripts are already there, and some other stuff, but no explanatory comments or technical texts of PySndObj usage/functionalities. Any correction or further code (not in manual) is helpful as is any explanation oriented to non-programmers or text corrections. Feel free to name your self as a contributor. A list of important related links is in the ToDo list. The text is in Portuguese still, but the code can be followed, and modifications in English can be done of course. I can translate some portions from time to time with pleasure. You need to register to add/edit, but it seems to be just for version control. I can edit/add if wanted, or help. link: http://www.estudiolivre.org/tiki-index.php?page=python-e-som-tutorial thanks, best, Renato 2007/8/20, Victor Lazzarini < Vic...@nu...>: > > I have released new packages for SndObj and PySndObj. These are > mainly bugfix releases. > > Currently PySndObj binaries are available for Win32 and OSX-Intel, but > I will add OSX-PPC and Linux (i386 and PPC) as soon as I build them. > > Victor > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: 2g <ele...@gm...> - 2007-10-03 18:25:50
|
oh am so lazy and running slackintosh always as root... On 10/2/07, Julien Pauty <jul...@gm...> wrote: > > Don't modify directly the /etc/profile modify the .profile file in > your home directory. > > Julien > > 2007/10/2, 2g <ele...@gm...>: > > thanks! > > > > scons pythonmodule=yes > > made the difference > > test.py and comb.py made sound > > but it was a noise .. not the same as what it made on OSX > > it also ended with segmentation fault reported.. > > > > running > > import sndobj > > says that there is nothing like that > > so as Victor suggested me .. have to set LD_LIBRARY_PATH? > > well will have to read threw what David told me to finding the exact > path > > but setting it in /etc/profile is how it should be? > > -- 2g http://micro.ispretty.com |