pksampler-devel Mailing List for the pksampler project (Page 2)
Status: Beta
Brought to you by:
patrickkidd
You can subscribe to this list here.
2005 |
Jan
|
Feb
(28) |
Mar
(12) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
(34) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(3) |
Feb
(4) |
Mar
|
Apr
(13) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Patrick S. <pat...@gc...> - 2005-10-11 20:09:57
|
It would be very nice to be able to nail down those server crashes. I've never seen it crash so much. how clean is your box? On Oct 11, 2005, at 11:46 AM, cies wrote: > finally at last... > > i jerked a bit of sound out of pkaudio! > > there is probably also something with the wavedecoder, since it doesnt > produced sound for me. > > cies@linux:~/src/repos/bin> qjackctl & > [1] 24422 > cies@linux:~/src/repos/bin> Warning: no locale found: > /usr/share/locale/qjackctl_en_US.UTF-8.qm > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Startup.wav > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Startup.wav > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # FIRST SOUND! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg #HUH?! > pkaudiod Server crashed! (signal 11) > detected server crash > Traceback (most recent call last): > File "./pkplay", line 34, in ? > s = pk.audio.Sample(fpath) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 100, in __init__ > id = core.createModule(mtype, name) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > in createModule > return _recvULong() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > in _recvULong > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x4042ca6c> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x405f40ec>> ignored > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # and now it just works > again.. strange > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Glass_Break.ogg > playing /opt/kde3/share/sounds/KDE_Glass_Break.ogg # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_1.ogg > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_1.ogg > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_2.ogg > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # no sound... > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_2.ogg > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # BOOM! > pkaudiod Server crashed! (signal 11) > detected server crash > Traceback (most recent call last): > File "./pkplay", line 34, in ? > s = pk.audio.Sample(fpath) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 100, in __init__ > id = core.createModule(mtype, name) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > in createModule > return _recvULong() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > in _recvULong > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x4042ca6c> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x405f40cc>> ignored > > > maybe it has something to do with the XRUNs issue that i didnt fix > yet, yet i doubt it... > > > > i already stared to work a bit on an alternative implementation using > RtAudio an some Secret Rabbit Code (libsamplerate), but that is on > hold now. > > i much rather use a Qt-style api to do all i need (file loading, > sample rate conversion, audiodevice handling) and more over c-ish > nonsense... ohh, and now i can also prototype in python (the language > that i get paid for to code in -- yet i still suck at it) > > i'll write more later, i've got to code a bit now... > > _c. > > On 10/11/05, Patrick Stinson <pat...@gc...> wrote: > >> I have updated pkplay to use pk.options. You might check out that >> file to learn how to use pk.options. you can also grep the tree for >> OptionsGroup. >> >> On Oct 11, 2005, at 2:59 AM, cies wrote: >> >> >>> hmm... verbose on? pkplay does let me put verbose on. try it and you >>> see why, it just doesnt let you. >>> >>> >>> >>> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> hmm. I'm not sure what to say for the crashes, unless you debug >>>> pkaudiod (which you can, btw). >>>> >>>> pkplay is the easiest way to play sound. >>>> >>>> again, try running everything with verbose on. start_server() has >>>> that option, and pkplay should too. look at the pthon code for api >>>> references. >>>> >>>> >>>> On Oct 10, 2005, at 4:23 PM, cies wrote: >>>> >>>> >>>> >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>> >>>>> >>>>> >>>>>> >>>>>> On Oct 10, 2005, at 3:56 PM, cies wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> did you start the jack server? I use qjackctl. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> okay got some further... (apperrently i missed something >>>>>>> somewhere) >>>>>>> >>>>>>> jack runs (through qjackctl), yet with XRUNs once every while >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> install realtime-lsm (google realtime-lsm and your platform) to >>>>>> allow >>>>>> your user to run jack with realtime priority. you also want to >>>>>> run >>>>>> pkaudio with realtime priority. that will get rid of the xruns. >>>>>> >>>>>> http://gentoo-wiki.com/HOWTO_Jack >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> i can get jack_metronome to 'sound' >>>>>>> >>>>>>> then i try: >>>>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>>>>>> (does something, i see connections coming and going in >>>>>>> qjackctl, but >>>>>>> no sound and the runtime is too short to play the sample >>>>>>> properly) >>>>>>> >>>>>>> pksampler >>>>>>> (didnt start at first, but after creating /home/cies/wav, >>>>>>> what it >>>>>>> wanted, i was able to see the app -- no sound) >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> right. I haven't put that into a host config yet, so I hard- >>>>>> coded it. >>>>>> I haven't really designed the sample library directory yet, >>>>>> either. >>>>>> the current pksampler code is really in hack phase for now. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> >>>>>>> pkrack - worked yet silent >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> pkrack doesn't make any noise itself. it just gives you the >>>>>> rack so >>>>>> you can add some modules to it. the only module I have so far is >>>>>> pk.sampler. If you get pkplay to play something, then audio is >>>>>> all >>>>>> set. if you get pkrack up, then the gui is all set. try pkplay >>>>>> with >>>>>> the --verbose option. this also turns on verbosity for the >>>>>> pkaudio >>>>>> daemon. >>>>>> >>>>>> also, try pkplay --help. >>>>>> >>>>>> >>>>>> >>>>> >>>>> i did many times... i thought pkplay was the easiest path to >>>>> actually >>>>> hearing some sound... yet it didnt help much. >>>>> >>>>> okay, i do it from the python commandline: >>>>> >>>>> >>>>> >>>>> >>>>>>>> import time >>>>>>>> import sys >>>>>>>> import pk.audio >>>>>>>> import pk.options >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>>>>>> d.getMixer(0).connect(s.outputPort()) >>>>>>>> s.play() >>>>>>>> s.play() >>>>>>>> s.play() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> >>>>> --> no sound! >>>>> okay then i did some thing that might be terribly wrong but >>>>> heay! im >>>>> trying for hours (over the last days) and i keep on doing that... >>>>> >>>>> maybe you understand something out of this: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>> KeyboardInterrupt >>>>> >>>>> >>>>> >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> >>>>>>>> >>>>>>>> >>>>> detected server crash >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 224, in __init__ >>>>> core.loadModule('pksample') >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 818, >>>>> in loadModule >>>>> return _recvNull() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 242, >>>>> in _recvNull >>>>> ret = _recv() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 218, in _recv >>>>> raise ConnectionError('detected server crash') >>>>> pk.audio.core.ConnectionError: detected server crash >>>>> >>>>> >>>>> >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> d = pk.audio.Driver() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> detected server crash >>>>> detected server crash >>>>> Exception exceptions.AttributeError: <exceptions.AttributeError >>>>> instance at 0x406738cc> in <bound method Sample.__del__ of >>>>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 180, in __init__ >>>>> raise ConnectionError('not connected to server, connect with >>>>> "start_server()"') >>>>> pk.audio.modules.ConnectionError: not connected to server, connect >>>>> with "start_server()" >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 180, in __init__ >>>>> raise ConnectionError('not connected to server, connect with >>>>> "start_server()"') >>>>> pk.audio.modules.ConnectionError: not connected to server, connect >>>>> with "start_server()" >>>>> >>>>> >>>>> >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 225, in __init__ >>>>> Module.__init__(self, 'Sample', path) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 102, in __init__ >>>>> self._syncModuleInfo() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 119, in _syncModuleInfo >>>>> self.info = core.getModuleInfo(self.id()) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 694, >>>>> in getModuleInfo >>>>> return _recvModuleInfo() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 260, >>>>> in _recvModuleInfo >>>>> ret = _recvString() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 252, >>>>> in _recvString >>>>> ret = _recv() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 220, in _recv >>>>> ret += _sock.recv(1024) >>>>> socket.error: (104, 'Connection reset by peer') >>>>> >>>>> >>>>> >>>>>>>> s.play() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Exception exceptions.ValueError: <exceptions.ValueError >>>>> instance at >>>>> 0x406737ec> in <bound method Sample.__del__ of >>>>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 251, in play >>>>> self.setProperty('playing', core.TRUE) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 128, in setProperty >>>>> core.setProperty(self.info['id'], name, val) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 725, >>>>> in setProperty >>>>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 196, in _send >>>>> except socket.error, (errno, e): >>>>> ValueError: need more than 1 value to unpack >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> i'm off to bed. >>>>> _c. >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by: >>>>> Power Architecture Resource Center: Free content, downloads, >>>>> discussions, >>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>>> _______________________________________________ >>>>> Pksampler-devel mailing list >>>>> Pks...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: >>>> Power Architecture Resource Center: Free content, downloads, >>>> discussions, >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>> _______________________________________________ >>>> Pksampler-devel mailing list >>>> Pks...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Pksampler-devel mailing list >>> Pks...@li... >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-11 20:09:50
|
glad to hear you got somewhere. There must be a problem with my code, yes. All of those parts work really well on my machine. what distro are you using again? Maybe I can setup a box and write some install instructions, and fix some bugs. I will put together some install docs tonight that detail dependencies and everything else. I'll be sure to look at your emails for extra clues. I didn't know that libsamplerate would do everything that you are looking for. I would use soundtouch if you are just looking for something to transform some sound, as I think its a lot faster anyway. On Oct 11, 2005, at 11:46 AM, cies wrote: > finally at last... > > i jerked a bit of sound out of pkaudio! > > there is probably also something with the wavedecoder, since it doesnt > produced sound for me. > > cies@linux:~/src/repos/bin> qjackctl & > [1] 24422 > cies@linux:~/src/repos/bin> Warning: no locale found: > /usr/share/locale/qjackctl_en_US.UTF-8.qm > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Startup.wav > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Startup.wav > playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # FIRST SOUND! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg #HUH?! > pkaudiod Server crashed! (signal 11) > detected server crash > Traceback (most recent call last): > File "./pkplay", line 34, in ? > s = pk.audio.Sample(fpath) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 100, in __init__ > id = core.createModule(mtype, name) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > in createModule > return _recvULong() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > in _recvULong > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x4042ca6c> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x405f40ec>> ignored > > cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/ > KDE_Vox_Yo.ogg > playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # and now it just works > again.. strange > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Glass_Break.ogg > playing /opt/kde3/share/sounds/KDE_Glass_Break.ogg # no sound > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_1.ogg > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_1.ogg > playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_2.ogg > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # no sound... > _default_event_callback sample:loaded 15 > > cies@linux:~/src/repos/bin> ./pkplay -v -f > /opt/kde3/share/sounds/KDE_Logout_2.ogg > playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # BOOM! > pkaudiod Server crashed! (signal 11) > detected server crash > Traceback (most recent call last): > File "./pkplay", line 34, in ? > s = pk.audio.Sample(fpath) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 100, in __init__ > id = core.createModule(mtype, name) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, > in createModule > return _recvULong() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, > in _recvULong > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x4042ca6c> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x405f40cc>> ignored > > > maybe it has something to do with the XRUNs issue that i didnt fix > yet, yet i doubt it... > > > > i already stared to work a bit on an alternative implementation using > RtAudio an some Secret Rabbit Code (libsamplerate), but that is on > hold now. > > i much rather use a Qt-style api to do all i need (file loading, > sample rate conversion, audiodevice handling) and more over c-ish > nonsense... ohh, and now i can also prototype in python (the language > that i get paid for to code in -- yet i still suck at it) > > i'll write more later, i've got to code a bit now... > > _c. > > On 10/11/05, Patrick Stinson <pat...@gc...> wrote: > >> I have updated pkplay to use pk.options. You might check out that >> file to learn how to use pk.options. you can also grep the tree for >> OptionsGroup. >> >> On Oct 11, 2005, at 2:59 AM, cies wrote: >> >> >>> hmm... verbose on? pkplay does let me put verbose on. try it and you >>> see why, it just doesnt let you. >>> >>> >>> >>> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> hmm. I'm not sure what to say for the crashes, unless you debug >>>> pkaudiod (which you can, btw). >>>> >>>> pkplay is the easiest way to play sound. >>>> >>>> again, try running everything with verbose on. start_server() has >>>> that option, and pkplay should too. look at the pthon code for api >>>> references. >>>> >>>> >>>> On Oct 10, 2005, at 4:23 PM, cies wrote: >>>> >>>> >>>> >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>> >>>>> >>>>> >>>>>> >>>>>> On Oct 10, 2005, at 3:56 PM, cies wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> did you start the jack server? I use qjackctl. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> okay got some further... (apperrently i missed something >>>>>>> somewhere) >>>>>>> >>>>>>> jack runs (through qjackctl), yet with XRUNs once every while >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> install realtime-lsm (google realtime-lsm and your platform) to >>>>>> allow >>>>>> your user to run jack with realtime priority. you also want to >>>>>> run >>>>>> pkaudio with realtime priority. that will get rid of the xruns. >>>>>> >>>>>> http://gentoo-wiki.com/HOWTO_Jack >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> i can get jack_metronome to 'sound' >>>>>>> >>>>>>> then i try: >>>>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>>>>>> (does something, i see connections coming and going in >>>>>>> qjackctl, but >>>>>>> no sound and the runtime is too short to play the sample >>>>>>> properly) >>>>>>> >>>>>>> pksampler >>>>>>> (didnt start at first, but after creating /home/cies/wav, >>>>>>> what it >>>>>>> wanted, i was able to see the app -- no sound) >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> right. I haven't put that into a host config yet, so I hard- >>>>>> coded it. >>>>>> I haven't really designed the sample library directory yet, >>>>>> either. >>>>>> the current pksampler code is really in hack phase for now. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> >>>>>>> pkrack - worked yet silent >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> pkrack doesn't make any noise itself. it just gives you the >>>>>> rack so >>>>>> you can add some modules to it. the only module I have so far is >>>>>> pk.sampler. If you get pkplay to play something, then audio is >>>>>> all >>>>>> set. if you get pkrack up, then the gui is all set. try pkplay >>>>>> with >>>>>> the --verbose option. this also turns on verbosity for the >>>>>> pkaudio >>>>>> daemon. >>>>>> >>>>>> also, try pkplay --help. >>>>>> >>>>>> >>>>>> >>>>> >>>>> i did many times... i thought pkplay was the easiest path to >>>>> actually >>>>> hearing some sound... yet it didnt help much. >>>>> >>>>> okay, i do it from the python commandline: >>>>> >>>>> >>>>> >>>>> >>>>>>>> import time >>>>>>>> import sys >>>>>>>> import pk.audio >>>>>>>> import pk.options >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>>>>>> d.getMixer(0).connect(s.outputPort()) >>>>>>>> s.play() >>>>>>>> s.play() >>>>>>>> s.play() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> >>>>> --> no sound! >>>>> okay then i did some thing that might be terribly wrong but >>>>> heay! im >>>>> trying for hours (over the last days) and i keep on doing that... >>>>> >>>>> maybe you understand something out of this: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>> KeyboardInterrupt >>>>> >>>>> >>>>> >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> >>>>>>>> >>>>>>>> >>>>> detected server crash >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 224, in __init__ >>>>> core.loadModule('pksample') >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 818, >>>>> in loadModule >>>>> return _recvNull() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 242, >>>>> in _recvNull >>>>> ret = _recv() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 218, in _recv >>>>> raise ConnectionError('detected server crash') >>>>> pk.audio.core.ConnectionError: detected server crash >>>>> >>>>> >>>>> >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> d = pk.audio.Driver() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> detected server crash >>>>> detected server crash >>>>> Exception exceptions.AttributeError: <exceptions.AttributeError >>>>> instance at 0x406738cc> in <bound method Sample.__del__ of >>>>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 180, in __init__ >>>>> raise ConnectionError('not connected to server, connect with >>>>> "start_server()"') >>>>> pk.audio.modules.ConnectionError: not connected to server, connect >>>>> with "start_server()" >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 180, in __init__ >>>>> raise ConnectionError('not connected to server, connect with >>>>> "start_server()"') >>>>> pk.audio.modules.ConnectionError: not connected to server, connect >>>>> with "start_server()" >>>>> >>>>> >>>>> >>>>>>>> pk.options.parse_args() >>>>>>>> pk.audio.start_server() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> True >>>>> >>>>> >>>>> >>>>>>>> d = pk.audio.Driver() >>>>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 225, in __init__ >>>>> Module.__init__(self, 'Sample', path) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 102, in __init__ >>>>> self._syncModuleInfo() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 119, in _syncModuleInfo >>>>> self.info = core.getModuleInfo(self.id()) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 694, >>>>> in getModuleInfo >>>>> return _recvModuleInfo() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 260, >>>>> in _recvModuleInfo >>>>> ret = _recvString() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 252, >>>>> in _recvString >>>>> ret = _recv() >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 220, in _recv >>>>> ret += _sock.recv(1024) >>>>> socket.error: (104, 'Connection reset by peer') >>>>> >>>>> >>>>> >>>>>>>> s.play() >>>>>>>> >>>>>>>> >>>>>>>> >>>>> Exception exceptions.ValueError: <exceptions.ValueError >>>>> instance at >>>>> 0x406737ec> in <bound method Sample.__del__ of >>>>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored >>>>> Traceback (most recent call last): >>>>> File "<stdin>", line 1, in ? >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 251, in play >>>>> self.setProperty('playing', core.TRUE) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", >>>>> line >>>>> 128, in setProperty >>>>> core.setProperty(self.info['id'], name, val) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 725, >>>>> in setProperty >>>>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) >>>>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>>>> 196, in _send >>>>> except socket.error, (errno, e): >>>>> ValueError: need more than 1 value to unpack >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> i'm off to bed. >>>>> _c. >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.Net email is sponsored by: >>>>> Power Architecture Resource Center: Free content, downloads, >>>>> discussions, >>>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>>> _______________________________________________ >>>>> Pksampler-devel mailing list >>>>> Pks...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: >>>> Power Architecture Resource Center: Free content, downloads, >>>> discussions, >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>> _______________________________________________ >>>> Pksampler-devel mailing list >>>> Pks...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Pksampler-devel mailing list >>> Pks...@li... >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: cies <cie...@gm...> - 2005-10-11 19:47:08
|
finally at last... i jerked a bit of sound out of pkaudio! there is probably also something with the wavedecoder, since it doesnt produced sound for me. cies@linux:~/src/repos/bin> qjackctl & [1] 24422 cies@linux:~/src/repos/bin> Warning: no locale found: /usr/share/locale/qjackctl_en_US.UTF-8.qm cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Startup.wav playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Startup.wav playing /opt/kde3/share/sounds/KDE_Startup.wav # no sound _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Vox_Y= o.ogg playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # FIRST SOUND! _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Vox_Y= o.ogg playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg #HUH?! pkaudiod Server crashed! (signal 11) detected server crash Traceback (most recent call last): File "./pkplay", line 34, in ? s =3D pk.audio.Sample(fpath) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 225, in __init__ Module.__init__(self, 'Sample', path) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 100, in __init__ id =3D core.createModule(mtype, name) File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, in createModule return _recvULong() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, in _recvULong ret =3D _recv() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 218, in _r= ecv raise ConnectionError('detected server crash') pk.audio.core.ConnectionError: detected server crash Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0x4042ca6c> in <bound method Sample.__del__ of <pk.audio.modules.Sample instance at 0x405f40ec>> ignored cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Vox_Y= o.ogg playing /opt/kde3/share/sounds/KDE_Vox_Yo.ogg # and now it just works again.. strange _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Glass_Break.ogg playing /opt/kde3/share/sounds/KDE_Glass_Break.ogg # no sound _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Logout_1.ogg playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Logout_1.ogg playing /opt/kde3/share/sounds/KDE_Logout_1.ogg # sound! _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Logout_2.ogg playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # no sound... _default_event_callback sample:loaded 15 cies@linux:~/src/repos/bin> ./pkplay -v -f /opt/kde3/share/sounds/KDE_Logout_2.ogg playing /opt/kde3/share/sounds/KDE_Logout_2.ogg # BOOM! pkaudiod Server crashed! (signal 11) detected server crash Traceback (most recent call last): File "./pkplay", line 34, in ? s =3D pk.audio.Sample(fpath) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 225, in __init__ Module.__init__(self, 'Sample', path) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 100, in __init__ id =3D core.createModule(mtype, name) File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 658, in createModule return _recvULong() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 227, in _recvULong ret =3D _recv() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 218, in _r= ecv raise ConnectionError('detected server crash') pk.audio.core.ConnectionError: detected server crash Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0x4042ca6c> in <bound method Sample.__del__ of <pk.audio.modules.Sample instance at 0x405f40cc>> ignored maybe it has something to do with the XRUNs issue that i didnt fix yet, yet i doubt it... i already stared to work a bit on an alternative implementation using RtAudio an some Secret Rabbit Code (libsamplerate), but that is on hold now. i much rather use a Qt-style api to do all i need (file loading, sample rate conversion, audiodevice handling) and more over c-ish nonsense... ohh, and now i can also prototype in python (the language that i get paid for to code in -- yet i still suck at it) i'll write more later, i've got to code a bit now... _c. On 10/11/05, Patrick Stinson <pat...@gc...> wrote: > I have updated pkplay to use pk.options. You might check out that > file to learn how to use pk.options. you can also grep the tree for > OptionsGroup. > > On Oct 11, 2005, at 2:59 AM, cies wrote: > > > hmm... verbose on? pkplay does let me put verbose on. try it and you > > see why, it just doesnt let you. > > > > > > > > > > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > > > >> hmm. I'm not sure what to say for the crashes, unless you debug > >> pkaudiod (which you can, btw). > >> > >> pkplay is the easiest way to play sound. > >> > >> again, try running everything with verbose on. start_server() has > >> that option, and pkplay should too. look at the pthon code for api > >> references. > >> > >> > >> On Oct 10, 2005, at 4:23 PM, cies wrote: > >> > >> > >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>> > >>> > >>>> > >>>> On Oct 10, 2005, at 3:56 PM, cies wrote: > >>>> > >>>> > >>>> > >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>>>> > >>>>> > >>>>> > >>>>>> did you start the jack server? I use qjackctl. > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> okay got some further... (apperrently i missed something > >>>>> somewhere) > >>>>> > >>>>> jack runs (through qjackctl), yet with XRUNs once every while > >>>>> > >>>>> > >>>> > >>>> install realtime-lsm (google realtime-lsm and your platform) to > >>>> allow > >>>> your user to run jack with realtime priority. you also want to run > >>>> pkaudio with realtime priority. that will get rid of the xruns. > >>>> > >>>> http://gentoo-wiki.com/HOWTO_Jack > >>>> > >>>> > >>>> > >>>>> > >>>>> i can get jack_metronome to 'sound' > >>>>> > >>>>> then i try: > >>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav > >>>>> (does something, i see connections coming and going in > >>>>> qjackctl, but > >>>>> no sound and the runtime is too short to play the sample properly) > >>>>> > >>>>> pksampler > >>>>> (didnt start at first, but after creating /home/cies/wav, what it > >>>>> wanted, i was able to see the app -- no sound) > >>>>> > >>>>> > >>>> > >>>> right. I haven't put that into a host config yet, so I hard- > >>>> coded it. > >>>> I haven't really designed the sample library directory yet, either. > >>>> the current pksampler code is really in hack phase for now. > >>>> > >>>> > >>>> > >>>>> > >>>>> > >>>>> pkrack - worked yet silent > >>>>> > >>>>> > >>>> > >>>> pkrack doesn't make any noise itself. it just gives you the rack so > >>>> you can add some modules to it. the only module I have so far is > >>>> pk.sampler. If you get pkplay to play something, then audio is all > >>>> set. if you get pkrack up, then the gui is all set. try pkplay with > >>>> the --verbose option. this also turns on verbosity for the pkaudio > >>>> daemon. > >>>> > >>>> also, try pkplay --help. > >>>> > >>>> > >>> > >>> i did many times... i thought pkplay was the easiest path to > >>> actually > >>> hearing some sound... yet it didnt help much. > >>> > >>> okay, i do it from the python commandline: > >>> > >>> > >>> > >>>>>> import time > >>>>>> import sys > >>>>>> import pk.audio > >>>>>> import pk.options > >>>>>> pk.options.parse_args() > >>>>>> pk.audio.start_server() > >>>>>> > >>>>>> > >>> True > >>> > >>> > >>>>>> d =3D pk.audio.Driver() > >>>>>> s =3D pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") > >>>>>> d.getMixer(0).connect(s.outputPort()) > >>>>>> s.play() > >>>>>> s.play() > >>>>>> s.play() > >>>>>> > >>>>>> > >>> > >>> --> no sound! > >>> okay then i did some thing that might be terribly wrong but heay! im > >>> trying for hours (over the last days) and i keep on doing that... > >>> > >>> maybe you understand something out of this: > >>> > >>> > >>> > >>> > >>>>>> > >>>>>> > >>>>>> > >>> KeyboardInterrupt > >>> > >>> > >>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>> > >>>>>> > >>> detected server crash > >>> Traceback (most recent call last): > >>> File "<stdin>", line 1, in ? > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 224, in __init__ > >>> core.loadModule('pksample') > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 818, > >>> in loadModule > >>> return _recvNull() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 242, > >>> in _recvNull > >>> ret =3D _recv() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 218, in _recv > >>> raise ConnectionError('detected server crash') > >>> pk.audio.core.ConnectionError: detected server crash > >>> > >>> > >>>>>> pk.options.parse_args() > >>>>>> pk.audio.start_server() > >>>>>> > >>>>>> > >>> True > >>> > >>> > >>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>> d =3D pk.audio.Driver() > >>>>>> > >>>>>> > >>> detected server crash > >>> detected server crash > >>> Exception exceptions.AttributeError: <exceptions.AttributeError > >>> instance at 0x406738cc> in <bound method Sample.__del__ of > >>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored > >>> Traceback (most recent call last): > >>> File "<stdin>", line 1, in ? > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 180, in __init__ > >>> raise ConnectionError('not connected to server, connect with > >>> "start_server()"') > >>> pk.audio.modules.ConnectionError: not connected to server, connect > >>> with "start_server()" > >>> > >>> > >>>>>> d =3D pk.audio.Driver() > >>>>>> > >>>>>> > >>> Traceback (most recent call last): > >>> File "<stdin>", line 1, in ? > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 180, in __init__ > >>> raise ConnectionError('not connected to server, connect with > >>> "start_server()"') > >>> pk.audio.modules.ConnectionError: not connected to server, connect > >>> with "start_server()" > >>> > >>> > >>>>>> pk.options.parse_args() > >>>>>> pk.audio.start_server() > >>>>>> > >>>>>> > >>> True > >>> > >>> > >>>>>> d =3D pk.audio.Driver() > >>>>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>>>> > >>>>>> > >>> Traceback (most recent call last): > >>> File "<stdin>", line 1, in ? > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 225, in __init__ > >>> Module.__init__(self, 'Sample', path) > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 102, in __init__ > >>> self._syncModuleInfo() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 119, in _syncModuleInfo > >>> self.info =3D core.getModuleInfo(self.id()) > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 694, > >>> in getModuleInfo > >>> return _recvModuleInfo() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 260, > >>> in _recvModuleInfo > >>> ret =3D _recvString() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 252, > >>> in _recvString > >>> ret =3D _recv() > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 220, in _recv > >>> ret +=3D _sock.recv(1024) > >>> socket.error: (104, 'Connection reset by peer') > >>> > >>> > >>>>>> s.play() > >>>>>> > >>>>>> > >>> Exception exceptions.ValueError: <exceptions.ValueError instance at > >>> 0x406737ec> in <bound method Sample.__del__ of > >>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored > >>> Traceback (most recent call last): > >>> File "<stdin>", line 1, in ? > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 251, in play > >>> self.setProperty('playing', core.TRUE) > >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > >>> 128, in setProperty > >>> core.setProperty(self.info['id'], name, val) > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 725, > >>> in setProperty > >>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) > >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > >>> 196, in _send > >>> except socket.error, (errno, e): > >>> ValueError: need more than 1 value to unpack > >>> > >>> > >>> > >>> > >>> > >>> i'm off to bed. > >>> _c. > >>> > >>> > >>> ------------------------------------------------------- > >>> This SF.Net email is sponsored by: > >>> Power Architecture Resource Center: Free content, downloads, > >>> discussions, > >>> and more. http://solutions.newsforge.com/ibmarch.tmpl > >>> _______________________________________________ > >>> Pksampler-devel mailing list > >>> Pks...@li... > >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >>> > >>> > >> > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by: > >> Power Architecture Resource Center: Free content, downloads, > >> discussions, > >> and more. http://solutions.newsforge.com/ibmarch.tmpl > >> _______________________________________________ > >> Pksampler-devel mailing list > >> Pks...@li... > >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel > >> > >> > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, > > discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Pksampler-devel mailing list > > Pks...@li... > > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-11 19:26:11
|
I have updated pkplay to use pk.options. You might check out that file to learn how to use pk.options. you can also grep the tree for OptionsGroup. On Oct 11, 2005, at 2:59 AM, cies wrote: > hmm... verbose on? pkplay does let me put verbose on. try it and you > see why, it just doesnt let you. > > > > > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >> hmm. I'm not sure what to say for the crashes, unless you debug >> pkaudiod (which you can, btw). >> >> pkplay is the easiest way to play sound. >> >> again, try running everything with verbose on. start_server() has >> that option, and pkplay should too. look at the pthon code for api >> references. >> >> >> On Oct 10, 2005, at 4:23 PM, cies wrote: >> >> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> >>>> On Oct 10, 2005, at 3:56 PM, cies wrote: >>>> >>>> >>>> >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>> >>>>> >>>>> >>>>>> did you start the jack server? I use qjackctl. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> okay got some further... (apperrently i missed something >>>>> somewhere) >>>>> >>>>> jack runs (through qjackctl), yet with XRUNs once every while >>>>> >>>>> >>>> >>>> install realtime-lsm (google realtime-lsm and your platform) to >>>> allow >>>> your user to run jack with realtime priority. you also want to run >>>> pkaudio with realtime priority. that will get rid of the xruns. >>>> >>>> http://gentoo-wiki.com/HOWTO_Jack >>>> >>>> >>>> >>>>> >>>>> i can get jack_metronome to 'sound' >>>>> >>>>> then i try: >>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>>>> (does something, i see connections coming and going in >>>>> qjackctl, but >>>>> no sound and the runtime is too short to play the sample properly) >>>>> >>>>> pksampler >>>>> (didnt start at first, but after creating /home/cies/wav, what it >>>>> wanted, i was able to see the app -- no sound) >>>>> >>>>> >>>> >>>> right. I haven't put that into a host config yet, so I hard- >>>> coded it. >>>> I haven't really designed the sample library directory yet, either. >>>> the current pksampler code is really in hack phase for now. >>>> >>>> >>>> >>>>> >>>>> >>>>> pkrack - worked yet silent >>>>> >>>>> >>>> >>>> pkrack doesn't make any noise itself. it just gives you the rack so >>>> you can add some modules to it. the only module I have so far is >>>> pk.sampler. If you get pkplay to play something, then audio is all >>>> set. if you get pkrack up, then the gui is all set. try pkplay with >>>> the --verbose option. this also turns on verbosity for the pkaudio >>>> daemon. >>>> >>>> also, try pkplay --help. >>>> >>>> >>> >>> i did many times... i thought pkplay was the easiest path to >>> actually >>> hearing some sound... yet it didnt help much. >>> >>> okay, i do it from the python commandline: >>> >>> >>> >>>>>> import time >>>>>> import sys >>>>>> import pk.audio >>>>>> import pk.options >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>>>> d.getMixer(0).connect(s.outputPort()) >>>>>> s.play() >>>>>> s.play() >>>>>> s.play() >>>>>> >>>>>> >>> >>> --> no sound! >>> okay then i did some thing that might be terribly wrong but heay! im >>> trying for hours (over the last days) and i keep on doing that... >>> >>> maybe you understand something out of this: >>> >>> >>> >>> >>>>>> >>>>>> >>>>>> >>> KeyboardInterrupt >>> >>> >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> >>>>>> >>> detected server crash >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 224, in __init__ >>> core.loadModule('pksample') >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 818, >>> in loadModule >>> return _recvNull() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 242, >>> in _recvNull >>> ret = _recv() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 218, in _recv >>> raise ConnectionError('detected server crash') >>> pk.audio.core.ConnectionError: detected server crash >>> >>> >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> d = pk.audio.Driver() >>>>>> >>>>>> >>> detected server crash >>> detected server crash >>> Exception exceptions.AttributeError: <exceptions.AttributeError >>> instance at 0x406738cc> in <bound method Sample.__del__ of >>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 180, in __init__ >>> raise ConnectionError('not connected to server, connect with >>> "start_server()"') >>> pk.audio.modules.ConnectionError: not connected to server, connect >>> with "start_server()" >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> >>>>>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 180, in __init__ >>> raise ConnectionError('not connected to server, connect with >>> "start_server()"') >>> pk.audio.modules.ConnectionError: not connected to server, connect >>> with "start_server()" >>> >>> >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> >>>>>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 225, in __init__ >>> Module.__init__(self, 'Sample', path) >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 102, in __init__ >>> self._syncModuleInfo() >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 119, in _syncModuleInfo >>> self.info = core.getModuleInfo(self.id()) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 694, >>> in getModuleInfo >>> return _recvModuleInfo() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 260, >>> in _recvModuleInfo >>> ret = _recvString() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 252, >>> in _recvString >>> ret = _recv() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 220, in _recv >>> ret += _sock.recv(1024) >>> socket.error: (104, 'Connection reset by peer') >>> >>> >>>>>> s.play() >>>>>> >>>>>> >>> Exception exceptions.ValueError: <exceptions.ValueError instance at >>> 0x406737ec> in <bound method Sample.__del__ of >>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 251, in play >>> self.setProperty('playing', core.TRUE) >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 128, in setProperty >>> core.setProperty(self.info['id'], name, val) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 725, >>> in setProperty >>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 196, in _send >>> except socket.error, (errno, e): >>> ValueError: need more than 1 value to unpack >>> >>> >>> >>> >>> >>> i'm off to bed. >>> _c. >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Pksampler-devel mailing list >>> Pks...@li... >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-11 18:43:52
|
sorry, I just realized that I hadn't added pk.options support to pkplay yet. won't take long. On another note. I would suggest that when you run into a problem like this, particularly with python code, go ahead and start reading the code in question. This will help especially because you are across the world, and it takes us a day to reply to each other. You will find that most of the problems are fairly simple to fix, or to understand (because my code aint perfect yet baby!). I wrote a lot of the source tree in one massive re-write session a few weeks ago, so there are bound to be some small flaws. Thanks fro you input, testing on another platform really helps. On Oct 11, 2005, at 2:59 AM, cies wrote: > hmm... verbose on? pkplay does let me put verbose on. try it and you > see why, it just doesnt let you. > > > > > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >> hmm. I'm not sure what to say for the crashes, unless you debug >> pkaudiod (which you can, btw). >> >> pkplay is the easiest way to play sound. >> >> again, try running everything with verbose on. start_server() has >> that option, and pkplay should too. look at the pthon code for api >> references. >> >> >> On Oct 10, 2005, at 4:23 PM, cies wrote: >> >> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> >>>> On Oct 10, 2005, at 3:56 PM, cies wrote: >>>> >>>> >>>> >>>>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>>>> >>>>> >>>>> >>>>>> did you start the jack server? I use qjackctl. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> okay got some further... (apperrently i missed something >>>>> somewhere) >>>>> >>>>> jack runs (through qjackctl), yet with XRUNs once every while >>>>> >>>>> >>>> >>>> install realtime-lsm (google realtime-lsm and your platform) to >>>> allow >>>> your user to run jack with realtime priority. you also want to run >>>> pkaudio with realtime priority. that will get rid of the xruns. >>>> >>>> http://gentoo-wiki.com/HOWTO_Jack >>>> >>>> >>>> >>>>> >>>>> i can get jack_metronome to 'sound' >>>>> >>>>> then i try: >>>>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>>>> (does something, i see connections coming and going in >>>>> qjackctl, but >>>>> no sound and the runtime is too short to play the sample properly) >>>>> >>>>> pksampler >>>>> (didnt start at first, but after creating /home/cies/wav, what it >>>>> wanted, i was able to see the app -- no sound) >>>>> >>>>> >>>> >>>> right. I haven't put that into a host config yet, so I hard- >>>> coded it. >>>> I haven't really designed the sample library directory yet, either. >>>> the current pksampler code is really in hack phase for now. >>>> >>>> >>>> >>>>> >>>>> >>>>> pkrack - worked yet silent >>>>> >>>>> >>>> >>>> pkrack doesn't make any noise itself. it just gives you the rack so >>>> you can add some modules to it. the only module I have so far is >>>> pk.sampler. If you get pkplay to play something, then audio is all >>>> set. if you get pkrack up, then the gui is all set. try pkplay with >>>> the --verbose option. this also turns on verbosity for the pkaudio >>>> daemon. >>>> >>>> also, try pkplay --help. >>>> >>>> >>> >>> i did many times... i thought pkplay was the easiest path to >>> actually >>> hearing some sound... yet it didnt help much. >>> >>> okay, i do it from the python commandline: >>> >>> >>> >>>>>> import time >>>>>> import sys >>>>>> import pk.audio >>>>>> import pk.options >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>>>> d.getMixer(0).connect(s.outputPort()) >>>>>> s.play() >>>>>> s.play() >>>>>> s.play() >>>>>> >>>>>> >>> >>> --> no sound! >>> okay then i did some thing that might be terribly wrong but heay! im >>> trying for hours (over the last days) and i keep on doing that... >>> >>> maybe you understand something out of this: >>> >>> >>> >>> >>>>>> >>>>>> >>>>>> >>> KeyboardInterrupt >>> >>> >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> >>>>>> >>> detected server crash >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 224, in __init__ >>> core.loadModule('pksample') >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 818, >>> in loadModule >>> return _recvNull() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 242, >>> in _recvNull >>> ret = _recv() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 218, in _recv >>> raise ConnectionError('detected server crash') >>> pk.audio.core.ConnectionError: detected server crash >>> >>> >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> d = pk.audio.Driver() >>>>>> >>>>>> >>> detected server crash >>> detected server crash >>> Exception exceptions.AttributeError: <exceptions.AttributeError >>> instance at 0x406738cc> in <bound method Sample.__del__ of >>> <pk.audio.modules.Sample instance at 0x4049298c>> ignored >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 180, in __init__ >>> raise ConnectionError('not connected to server, connect with >>> "start_server()"') >>> pk.audio.modules.ConnectionError: not connected to server, connect >>> with "start_server()" >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> >>>>>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 180, in __init__ >>> raise ConnectionError('not connected to server, connect with >>> "start_server()"') >>> pk.audio.modules.ConnectionError: not connected to server, connect >>> with "start_server()" >>> >>> >>>>>> pk.options.parse_args() >>>>>> pk.audio.start_server() >>>>>> >>>>>> >>> True >>> >>> >>>>>> d = pk.audio.Driver() >>>>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>>>> >>>>>> >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 225, in __init__ >>> Module.__init__(self, 'Sample', path) >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 102, in __init__ >>> self._syncModuleInfo() >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 119, in _syncModuleInfo >>> self.info = core.getModuleInfo(self.id()) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 694, >>> in getModuleInfo >>> return _recvModuleInfo() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 260, >>> in _recvModuleInfo >>> ret = _recvString() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 252, >>> in _recvString >>> ret = _recv() >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 220, in _recv >>> ret += _sock.recv(1024) >>> socket.error: (104, 'Connection reset by peer') >>> >>> >>>>>> s.play() >>>>>> >>>>>> >>> Exception exceptions.ValueError: <exceptions.ValueError instance at >>> 0x406737ec> in <bound method Sample.__del__ of >>> <pk.audio.modules.Sample instance at 0x4067344c>> ignored >>> Traceback (most recent call last): >>> File "<stdin>", line 1, in ? >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 251, in play >>> self.setProperty('playing', core.TRUE) >>> File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line >>> 128, in setProperty >>> core.setProperty(self.info['id'], name, val) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 725, >>> in setProperty >>> _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) >>> File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line >>> 196, in _send >>> except socket.error, (errno, e): >>> ValueError: need more than 1 value to unpack >>> >>> >>> >>> >>> >>> i'm off to bed. >>> _c. >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Power Architecture Resource Center: Free content, downloads, >>> discussions, >>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>> _______________________________________________ >>> Pksampler-devel mailing list >>> Pks...@li... >>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: cies <cie...@gm...> - 2005-10-11 11:56:22
|
hmm... verbose on? pkplay does let me put verbose on. try it and you see why, it just doesnt let you. On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > hmm. I'm not sure what to say for the crashes, unless you debug > pkaudiod (which you can, btw). > > pkplay is the easiest way to play sound. > > again, try running everything with verbose on. start_server() has > that option, and pkplay should too. look at the pthon code for api > references. > > > On Oct 10, 2005, at 4:23 PM, cies wrote: > > > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > > > >> > >> On Oct 10, 2005, at 3:56 PM, cies wrote: > >> > >> > >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >>> > >>> > >>>> did you start the jack server? I use qjackctl. > >>>> > >>>> > >>> > >>> > >>> okay got some further... (apperrently i missed something somewhere) > >>> > >>> jack runs (through qjackctl), yet with XRUNs once every while > >>> > >> > >> install realtime-lsm (google realtime-lsm and your platform) to allow > >> your user to run jack with realtime priority. you also want to run > >> pkaudio with realtime priority. that will get rid of the xruns. > >> > >> http://gentoo-wiki.com/HOWTO_Jack > >> > >> > >>> > >>> i can get jack_metronome to 'sound' > >>> > >>> then i try: > >>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav > >>> (does something, i see connections coming and going in > >>> qjackctl, but > >>> no sound and the runtime is too short to play the sample properly) > >>> > >>> pksampler > >>> (didnt start at first, but after creating /home/cies/wav, what it > >>> wanted, i was able to see the app -- no sound) > >>> > >> > >> right. I haven't put that into a host config yet, so I hard-coded it. > >> I haven't really designed the sample library directory yet, either. > >> the current pksampler code is really in hack phase for now. > >> > >> > >>> > >>> > >>> pkrack - worked yet silent > >>> > >> > >> pkrack doesn't make any noise itself. it just gives you the rack so > >> you can add some modules to it. the only module I have so far is > >> pk.sampler. If you get pkplay to play something, then audio is all > >> set. if you get pkrack up, then the gui is all set. try pkplay with > >> the --verbose option. this also turns on verbosity for the pkaudio > >> daemon. > >> > >> also, try pkplay --help. > >> > > > > i did many times... i thought pkplay was the easiest path to actually > > hearing some sound... yet it didnt help much. > > > > okay, i do it from the python commandline: > > > > > >>>> import time > >>>> import sys > >>>> import pk.audio > >>>> import pk.options > >>>> pk.options.parse_args() > >>>> pk.audio.start_server() > >>>> > > True > > > >>>> d =3D pk.audio.Driver() > >>>> s =3D pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") > >>>> d.getMixer(0).connect(s.outputPort()) > >>>> s.play() > >>>> s.play() > >>>> s.play() > >>>> > > > > --> no sound! > > okay then i did some thing that might be terribly wrong but heay! im > > trying for hours (over the last days) and i keep on doing that... > > > > maybe you understand something out of this: > > > > > > > >>>> > >>>> > > KeyboardInterrupt > > > >>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>> > > detected server crash > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 224, in __init__ > > core.loadModule('pksample') > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, > > in loadModule > > return _recvNull() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, > > in _recvNull > > ret =3D _recv() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > > 218, in _recv > > raise ConnectionError('detected server crash') > > pk.audio.core.ConnectionError: detected server crash > > > >>>> pk.options.parse_args() > >>>> pk.audio.start_server() > >>>> > > True > > > >>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>> d =3D pk.audio.Driver() > >>>> > > detected server crash > > detected server crash > > Exception exceptions.AttributeError: <exceptions.AttributeError > > instance at 0x406738cc> in <bound method Sample.__del__ of > > <pk.audio.modules.Sample instance at 0x4049298c>> ignored > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 180, in __init__ > > raise ConnectionError('not connected to server, connect with > > "start_server()"') > > pk.audio.modules.ConnectionError: not connected to server, connect > > with "start_server()" > > > >>>> d =3D pk.audio.Driver() > >>>> > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 180, in __init__ > > raise ConnectionError('not connected to server, connect with > > "start_server()"') > > pk.audio.modules.ConnectionError: not connected to server, connect > > with "start_server()" > > > >>>> pk.options.parse_args() > >>>> pk.audio.start_server() > >>>> > > True > > > >>>> d =3D pk.audio.Driver() > >>>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") > >>>> > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 225, in __init__ > > Module.__init__(self, 'Sample', path) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 102, in __init__ > > self._syncModuleInfo() > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 119, in _syncModuleInfo > > self.info =3D core.getModuleInfo(self.id()) > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 694, > > in getModuleInfo > > return _recvModuleInfo() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 260, > > in _recvModuleInfo > > ret =3D _recvString() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 252, > > in _recvString > > ret =3D _recv() > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > > 220, in _recv > > ret +=3D _sock.recv(1024) > > socket.error: (104, 'Connection reset by peer') > > > >>>> s.play() > >>>> > > Exception exceptions.ValueError: <exceptions.ValueError instance at > > 0x406737ec> in <bound method Sample.__del__ of > > <pk.audio.modules.Sample instance at 0x4067344c>> ignored > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 251, in play > > self.setProperty('playing', core.TRUE) > > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > > 128, in setProperty > > core.setProperty(self.info['id'], name, val) > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 725, > > in setProperty > > _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) > > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > > 196, in _send > > except socket.error, (errno, e): > > ValueError: need more than 1 value to unpack > > > > > > > > > > > > i'm off to bed. > > _c. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, > > discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Pksampler-devel mailing list > > Pks...@li... > > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-11 00:33:40
|
I'm sure its a simple problem. this code hasn't been runon anything other than vanilla fedora3 and gento (works really well on a gentoo box). On Oct 10, 2005, at 4:23 PM, cies wrote: > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >> >> On Oct 10, 2005, at 3:56 PM, cies wrote: >> >> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> did you start the jack server? I use qjackctl. >>>> >>>> >>> >>> >>> okay got some further... (apperrently i missed something somewhere) >>> >>> jack runs (through qjackctl), yet with XRUNs once every while >>> >> >> install realtime-lsm (google realtime-lsm and your platform) to allow >> your user to run jack with realtime priority. you also want to run >> pkaudio with realtime priority. that will get rid of the xruns. >> >> http://gentoo-wiki.com/HOWTO_Jack >> >> >>> >>> i can get jack_metronome to 'sound' >>> >>> then i try: >>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>> (does something, i see connections coming and going in >>> qjackctl, but >>> no sound and the runtime is too short to play the sample properly) >>> >>> pksampler >>> (didnt start at first, but after creating /home/cies/wav, what it >>> wanted, i was able to see the app -- no sound) >>> >> >> right. I haven't put that into a host config yet, so I hard-coded it. >> I haven't really designed the sample library directory yet, either. >> the current pksampler code is really in hack phase for now. >> >> >>> >>> >>> pkrack - worked yet silent >>> >> >> pkrack doesn't make any noise itself. it just gives you the rack so >> you can add some modules to it. the only module I have so far is >> pk.sampler. If you get pkplay to play something, then audio is all >> set. if you get pkrack up, then the gui is all set. try pkplay with >> the --verbose option. this also turns on verbosity for the pkaudio >> daemon. >> >> also, try pkplay --help. >> > > i did many times... i thought pkplay was the easiest path to actually > hearing some sound... yet it didnt help much. > > okay, i do it from the python commandline: > > >>>> import time >>>> import sys >>>> import pk.audio >>>> import pk.options >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> d = pk.audio.Driver() >>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>> d.getMixer(0).connect(s.outputPort()) >>>> s.play() >>>> s.play() >>>> s.play() >>>> > > --> no sound! > okay then i did some thing that might be terribly wrong but heay! im > trying for hours (over the last days) and i keep on doing that... > > maybe you understand something out of this: > > > >>>> >>>> > KeyboardInterrupt > >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> > detected server crash > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 224, in __init__ > core.loadModule('pksample') > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, > in loadModule > return _recvNull() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, > in _recvNull > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> d = pk.audio.Driver() >>>> > detected server crash > detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x406738cc> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x4049298c>> ignored > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 180, in __init__ > raise ConnectionError('not connected to server, connect with > "start_server()"') > pk.audio.modules.ConnectionError: not connected to server, connect > with "start_server()" > >>>> d = pk.audio.Driver() >>>> > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 180, in __init__ > raise ConnectionError('not connected to server, connect with > "start_server()"') > pk.audio.modules.ConnectionError: not connected to server, connect > with "start_server()" > >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> d = pk.audio.Driver() >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 102, in __init__ > self._syncModuleInfo() > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 119, in _syncModuleInfo > self.info = core.getModuleInfo(self.id()) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 694, > in getModuleInfo > return _recvModuleInfo() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 260, > in _recvModuleInfo > ret = _recvString() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 252, > in _recvString > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 220, in _recv > ret += _sock.recv(1024) > socket.error: (104, 'Connection reset by peer') > >>>> s.play() >>>> > Exception exceptions.ValueError: <exceptions.ValueError instance at > 0x406737ec> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x4067344c>> ignored > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 251, in play > self.setProperty('playing', core.TRUE) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 128, in setProperty > core.setProperty(self.info['id'], name, val) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 725, > in setProperty > _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 196, in _send > except socket.error, (errno, e): > ValueError: need more than 1 value to unpack > > > > > > i'm off to bed. > _c. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-11 00:30:48
|
hmm. I'm not sure what to say for the crashes, unless you debug pkaudiod (which you can, btw). pkplay is the easiest way to play sound. again, try running everything with verbose on. start_server() has that option, and pkplay should too. look at the pthon code for api references. On Oct 10, 2005, at 4:23 PM, cies wrote: > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >> >> On Oct 10, 2005, at 3:56 PM, cies wrote: >> >> >>> On 10/10/05, Patrick Stinson <pat...@gc...> wrote: >>> >>> >>>> did you start the jack server? I use qjackctl. >>>> >>>> >>> >>> >>> okay got some further... (apperrently i missed something somewhere) >>> >>> jack runs (through qjackctl), yet with XRUNs once every while >>> >> >> install realtime-lsm (google realtime-lsm and your platform) to allow >> your user to run jack with realtime priority. you also want to run >> pkaudio with realtime priority. that will get rid of the xruns. >> >> http://gentoo-wiki.com/HOWTO_Jack >> >> >>> >>> i can get jack_metronome to 'sound' >>> >>> then i try: >>> pkplay /opt/kde3/share/sounds/KDE_Startup.wav >>> (does something, i see connections coming and going in >>> qjackctl, but >>> no sound and the runtime is too short to play the sample properly) >>> >>> pksampler >>> (didnt start at first, but after creating /home/cies/wav, what it >>> wanted, i was able to see the app -- no sound) >>> >> >> right. I haven't put that into a host config yet, so I hard-coded it. >> I haven't really designed the sample library directory yet, either. >> the current pksampler code is really in hack phase for now. >> >> >>> >>> >>> pkrack - worked yet silent >>> >> >> pkrack doesn't make any noise itself. it just gives you the rack so >> you can add some modules to it. the only module I have so far is >> pk.sampler. If you get pkplay to play something, then audio is all >> set. if you get pkrack up, then the gui is all set. try pkplay with >> the --verbose option. this also turns on verbosity for the pkaudio >> daemon. >> >> also, try pkplay --help. >> > > i did many times... i thought pkplay was the easiest path to actually > hearing some sound... yet it didnt help much. > > okay, i do it from the python commandline: > > >>>> import time >>>> import sys >>>> import pk.audio >>>> import pk.options >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> d = pk.audio.Driver() >>>> s = pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>>> d.getMixer(0).connect(s.outputPort()) >>>> s.play() >>>> s.play() >>>> s.play() >>>> > > --> no sound! > okay then i did some thing that might be terribly wrong but heay! im > trying for hours (over the last days) and i keep on doing that... > > maybe you understand something out of this: > > > >>>> >>>> > KeyboardInterrupt > >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> > detected server crash > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 224, in __init__ > core.loadModule('pksample') > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, > in loadModule > return _recvNull() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, > in _recvNull > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> d = pk.audio.Driver() >>>> > detected server crash > detected server crash > Exception exceptions.AttributeError: <exceptions.AttributeError > instance at 0x406738cc> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x4049298c>> ignored > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 180, in __init__ > raise ConnectionError('not connected to server, connect with > "start_server()"') > pk.audio.modules.ConnectionError: not connected to server, connect > with "start_server()" > >>>> d = pk.audio.Driver() >>>> > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 180, in __init__ > raise ConnectionError('not connected to server, connect with > "start_server()"') > pk.audio.modules.ConnectionError: not connected to server, connect > with "start_server()" > >>>> pk.options.parse_args() >>>> pk.audio.start_server() >>>> > True > >>>> d = pk.audio.Driver() >>>> s = pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>>> > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 225, in __init__ > Module.__init__(self, 'Sample', path) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 102, in __init__ > self._syncModuleInfo() > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 119, in _syncModuleInfo > self.info = core.getModuleInfo(self.id()) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 694, > in getModuleInfo > return _recvModuleInfo() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 260, > in _recvModuleInfo > ret = _recvString() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 252, > in _recvString > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 220, in _recv > ret += _sock.recv(1024) > socket.error: (104, 'Connection reset by peer') > >>>> s.play() >>>> > Exception exceptions.ValueError: <exceptions.ValueError instance at > 0x406737ec> in <bound method Sample.__del__ of > <pk.audio.modules.Sample instance at 0x4067344c>> ignored > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 251, in play > self.setProperty('playing', core.TRUE) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 128, in setProperty > core.setProperty(self.info['id'], name, val) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 725, > in setProperty > _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 196, in _send > except socket.error, (errno, e): > ValueError: need more than 1 value to unpack > > > > > > i'm off to bed. > _c. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: cies <cie...@gm...> - 2005-10-11 00:23:58
|
On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > > On Oct 10, 2005, at 3:56 PM, cies wrote: > > > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > > > >> did you start the jack server? I use qjackctl. > >> > > > > > > okay got some further... (apperrently i missed something somewhere) > > > > jack runs (through qjackctl), yet with XRUNs once every while > > install realtime-lsm (google realtime-lsm and your platform) to allow > your user to run jack with realtime priority. you also want to run > pkaudio with realtime priority. that will get rid of the xruns. > > http://gentoo-wiki.com/HOWTO_Jack > > > > > i can get jack_metronome to 'sound' > > > > then i try: > > pkplay /opt/kde3/share/sounds/KDE_Startup.wav > > (does something, i see connections coming and going in qjackctl, but > > no sound and the runtime is too short to play the sample properly) > > > > pksampler > > (didnt start at first, but after creating /home/cies/wav, what it > > wanted, i was able to see the app -- no sound) > > right. I haven't put that into a host config yet, so I hard-coded it. > I haven't really designed the sample library directory yet, either. > the current pksampler code is really in hack phase for now. > > > > > > > pkrack - worked yet silent > > pkrack doesn't make any noise itself. it just gives you the rack so > you can add some modules to it. the only module I have so far is > pk.sampler. If you get pkplay to play something, then audio is all > set. if you get pkrack up, then the gui is all set. try pkplay with > the --verbose option. this also turns on verbosity for the pkaudio > daemon. > > also, try pkplay --help. i did many times... i thought pkplay was the easiest path to actually hearing some sound... yet it didnt help much. okay, i do it from the python commandline: >>> import time >>> import sys >>> import pk.audio >>> import pk.options >>> pk.options.parse_args() >>> pk.audio.start_server() True >>> d =3D pk.audio.Driver() >>> s =3D pk.audio.Sample("/opt/kde3/share/sounds/KDE_Startup.wav") >>> d.getMixer(0).connect(s.outputPort()) >>> s.play() >>> s.play() >>> s.play() --> no sound! okay then i did some thing that might be terribly wrong but heay! im trying for hours (over the last days) and i keep on doing that... maybe you understand something out of this: >>> KeyboardInterrupt >>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") detected server crash Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 224, in __init__ core.loadModule('pksample') File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, in loadModule return _recvNull() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, in _recvNull ret =3D _recv() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 218, in _r= ecv raise ConnectionError('detected server crash') pk.audio.core.ConnectionError: detected server crash >>> pk.options.parse_args() >>> pk.audio.start_server() True >>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") >>> d =3D pk.audio.Driver() detected server crash detected server crash Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0x406738cc> in <bound method Sample.__del__ of <pk.audio.modules.Sample instance at 0x4049298c>> ignored Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 180, in __init__ raise ConnectionError('not connected to server, connect with "start_server()"') pk.audio.modules.ConnectionError: not connected to server, connect with "start_server()" >>> d =3D pk.audio.Driver() Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 180, in __init__ raise ConnectionError('not connected to server, connect with "start_server()"') pk.audio.modules.ConnectionError: not connected to server, connect with "start_server()" >>> pk.options.parse_args() >>> pk.audio.start_server() True >>> d =3D pk.audio.Driver() >>> s =3D pk.audio.Sample("/usr/lib/pd/doc/sound/voice.wav") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 225, in __init__ Module.__init__(self, 'Sample', path) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 102, in __init__ self._syncModuleInfo() File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 119, in _syncModuleInfo self.info =3D core.getModuleInfo(self.id()) File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 694, in getModuleInfo return _recvModuleInfo() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 260, in _recvModuleInfo ret =3D _recvString() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 252, in _recvString ret =3D _recv() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 220, in _r= ecv ret +=3D _sock.recv(1024) socket.error: (104, 'Connection reset by peer') >>> s.play() Exception exceptions.ValueError: <exceptions.ValueError instance at 0x406737ec> in <bound method Sample.__del__ of <pk.audio.modules.Sample instance at 0x4067344c>> ignored Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 251, in= play self.setProperty('playing', core.TRUE) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 128, in setProperty core.setProperty(self.info['id'], name, val) File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 725, in setProperty _send(msg('MLsf', 'SetProperty', mid, ctl, float(val))) File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 196, in _s= end except socket.error, (errno, e): ValueError: need more than 1 value to unpack i'm off to bed. _c. |
From: Patrick S. <pat...@gc...> - 2005-10-11 00:08:08
|
On Oct 10, 2005, at 3:56 PM, cies wrote: > On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > >> did you start the jack server? I use qjackctl. >> > > > okay got some further... (apperrently i missed something somewhere) > > jack runs (through qjackctl), yet with XRUNs once every while install realtime-lsm (google realtime-lsm and your platform) to allow your user to run jack with realtime priority. you also want to run pkaudio with realtime priority. that will get rid of the xruns. http://gentoo-wiki.com/HOWTO_Jack > > i can get jack_metronome to 'sound' > > then i try: > pkplay /opt/kde3/share/sounds/KDE_Startup.wav > (does something, i see connections coming and going in qjackctl, but > no sound and the runtime is too short to play the sample properly) > > pksampler > (didnt start at first, but after creating /home/cies/wav, what it > wanted, i was able to see the app -- no sound) right. I haven't put that into a host config yet, so I hard-coded it. I haven't really designed the sample library directory yet, either. the current pksampler code is really in hack phase for now. > > > pkrack - worked yet silent pkrack doesn't make any noise itself. it just gives you the rack so you can add some modules to it. the only module I have so far is pk.sampler. If you get pkplay to play something, then audio is all set. if you get pkrack up, then the gui is all set. try pkplay with the --verbose option. this also turns on verbosity for the pkaudio daemon. also, try pkplay --help. > > > > > wasnt it posible for pkaudio to work ditectly on alsa? (i mean > without jack) > [not that i actually think that jack is the problem in this case] > > im wondering where lies the problem. isnt is possible to have a simple > pkaudio base sawtooth generator or metronome to do some testing? > > > bye! > _c. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: cies <cie...@gm...> - 2005-10-10 23:56:47
|
On 10/10/05, Patrick Stinson <pat...@gc...> wrote: > did you start the jack server? I use qjackctl. okay got some further... (apperrently i missed something somewhere) jack runs (through qjackctl), yet with XRUNs once every while i can get jack_metronome to 'sound' then i try: pkplay /opt/kde3/share/sounds/KDE_Startup.wav (does something, i see connections coming and going in qjackctl, but no sound and the runtime is too short to play the sample properly) pksampler (didnt start at first, but after creating /home/cies/wav, what it wanted, i was able to see the app -- no sound) pkrack - worked yet silent wasnt it posible for pkaudio to work ditectly on alsa? (i mean without jack= ) [not that i actually think that jack is the problem in this case] im wondering where lies the problem. isnt is possible to have a simple pkaudio base sawtooth generator or metronome to do some testing? bye! _c. |
From: Patrick S. <pat...@gc...> - 2005-10-10 19:21:25
|
the cool thing about this technology is that it is very thin. It would take someone like you a very small amount of time to understand *all* of the functional code. I've already written the necessary subclasses (from pk.gui.pixmapwidgets import *), so it should be very simple to use/improve. On Oct 10, 2005, at 10:55 AM, Patrick Stinson wrote: > excellent! I haven't yet seen anything that even comes close. Bob > nigh, a friend of mine came up with the idea of using pov pixmaps, > and I put the technology together. > > On Oct 9, 2005, at 2:00 PM, cies wrote: > > >> i was a bit sceptical towards the gui stuff, yet after i just >> ramdomly >> started to test the 'scripts' i stumbled of the pkdemo script.... >> >> >> GOSH THAT DOES LOOKS AND FEEL SEXY MAN! >> >> im over with it: i will use that stuff for shure one day... >> >> _c. >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-10 18:55:49
|
excellent! I haven't yet seen anything that even comes close. Bob nigh, a friend of mine came up with the idea of using pov pixmaps, and I put the technology together. On Oct 9, 2005, at 2:00 PM, cies wrote: > i was a bit sceptical towards the gui stuff, yet after i just ramdomly > started to test the 'scripts' i stumbled of the pkdemo script.... > > > GOSH THAT DOES LOOKS AND FEEL SEXY MAN! > > im over with it: i will use that stuff for shure one day... > > _c. > |
From: Patrick S. <pat...@gc...> - 2005-10-10 18:54:15
|
did you start the jack server? I use qjackctl. On Oct 8, 2005, at 8:29 PM, cies wrote: > On 10/8/05, cies <cie...@gm...> wrote: > >> sorry i dont understand this: >> >> cies@linux:~/src/repos> vi pk/gui/pixmaps/core.py # this works! >> cies@linux:~/src/repos> cp pk/gui/pixmaps/core.pyc . >> cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory >> > > sorry, sorry, sorry! > > i have overseen a c in pyC... sorry. > i fixed the error by importing this file ones from the python prompt > > > so i got further, but not till the 'end' (a simple sound playing over > my speakers though pkaudio) > > afer 'sudo make install' > > i tried: > > cies@linux:~/src/repos/build/scripts-2.4> ./pkplay > /opt/kde3/share/sounds/KDE_Startup.wav > detected server crash > Traceback (most recent call last): > File "./pkplay", line 20, in ? > s = pk.audio.Sample(sys.argv[1]) > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 224, in __init__ > core.loadModule('pksample') > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, > in loadModule > return _recvNull() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, > in _recvNull > ret = _recv() > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 218, in _recv > raise ConnectionError('detected server crash') > pk.audio.core.ConnectionError: detected server crash > > > (while the server was running and didnt crash) > > > then i tried it later, and it didnt 'crash' any more (yet it also > didnt work) > > > cies@linux:~/src/repos/build/scripts-2.4> ./pkplay > /opt/kde3/share/sounds/KDE_Startup.wav > Traceback (most recent call last): > File "./pkplay", line 15, in ? > if not pk.audio.start_server(): > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 25, in start_server > realtime=realtime, > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 575, in connect > raise e > KeyboardInterrupt > > and > > cies@linux:~/src/repos/build/scripts-2.4> ./pksampler > Traceback (most recent call last): > File "./pksampler", line 69, in ? > pksampler = PKSampler() > File "./pksampler", line 23, in __init__ > rack.SplashRack.__init__(self, buttons=14) > File "/usr/lib/python2.4/site-packages/pk/gui/rack/splashrack.py", > line 55, in __init__ > self.initialize() > File "./pksampler", line 30, in initialize > pk.audio.start_server() > File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line > 25, in start_server > realtime=realtime, > File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line > 575, in connect > raise e > KeyboardInterrupt > > > somehow it looks like it is stuck in an connection look or what. > > well, a bit further at least! > > > thanks, > _c. > > > > >> i have to go to bed. >> > > > > > > > > > >> _c. >> >> >> >> >> >> On 10/8/05, cies <cie...@gm...> wrote: >> >>> okay i understand it better now... >>> i also try to jot down what i do in order to get it installed, >>> since i >>> didnt find any INSTALL of README. >>> >>> right now i get: >>> cies@linux:~/src/repos> make install >>> python setup.py install >>> running install >>> running build >>> running build_py >>> running build_scripts >>> running install_lib >>> running install_scripts >>> changing mode of /usr/bin/pkmoduletool to 755 >>> error: /usr/bin/pkmoduletool: Operation not permitted >>> make: *** [python_install] Error 1 >>> cies@linux:~/src/repos> sudo make install >>> python setup.py install >>> running install >>> running build >>> running build_py >>> running build_scripts >>> running install_lib >>> running install_scripts >>> changing mode of /usr/bin/pkmoduletool to 755 >>> changing mode of /usr/bin/pkmakepov to 755 >>> changing mode of /usr/bin/pkplay to 755 >>> changing mode of /usr/bin/pkrace to 755 >>> changing mode of /usr/bin/pkpovgui to 755 >>> changing mode of /usr/bin/pkpatchtool to 755 >>> changing mode of /usr/bin/pksampler to 755 >>> cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; >>> print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps >>> cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory >>> make: *** [python_install] Error 1 >>> >>> >>> >>> >>> apart from setting the soundtouch SAMETYPE to float i also had to >>> add: >>> #include <soundtouch/STTypes.h> >>> and changed: >>> typedef SAMPLETYPE sample_t; >>> to: >>> typedef soundtouch::SAMPLETYPE sample_t; >>> in pkglobals.h, in order to get pkaudio to compile. >>> >>> >>> >>> >>> >>> On 10/8/05, Patrick Stinson <pat...@gc...> wrote: >>> >>>> first off, the compile error i a problem with soundtouch. you >>>> have to >>>> specify if you want to use float or integer samples using a >>>> preprocessor directive in STTypes.h, *before* you compile the >>>> library. pkaudio uses float samples. some linux distributions use >>>> float samples, some use integer samples. I would just set it to >>>> float >>>> and install the library yourself. >>>> >>>> none of the programs that play audio (like pkplay) will work >>>> without >>>> the server. the server *is* the audio component. >>>> >>>> >>>> as far as the "bad magic number" error from importing the pixmaps >>>> file, that's some kind of python error. I have been looking for a >>>> good way to package all of the pixmaps for the various parts of my >>>> code. ideally there would be a python module that you can just >>>> import. Since pyc files are not platform-independent, I should >>>> erase >>>> that one from version control and replace it with the .py file. >>>> There >>>> is a compatibility problem with pyuic-embedded pixmap data, between >>>> ppc and x86 though, too. It must have something to do with >>>> endianness. maybe I should have two copies. >>>> >>>> I fixed the pixmap problem. 'svn up' and try again. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by: >>>> Power Architecture Resource Center: Free content, downloads, >>>> discussions, >>>> and more. http://solutions.newsforge.com/ibmarch.tmpl >>>> _______________________________________________ >>>> Pksampler-devel mailing list >>>> Pks...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >>>> >>>> >>> >>> >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-10 18:51:21
|
On Oct 8, 2005, at 7:38 PM, cies wrote: > okay i understand it better now... > i also try to jot down what i do in order to get it installed, since i > didnt find any INSTALL of README. > > right now i get: > cies@linux:~/src/repos> make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > error: /usr/bin/pkmoduletool: Operation not permitted run as root > make: *** [python_install] Error 1 > cies@linux:~/src/repos> sudo make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > changing mode of /usr/bin/pkmakepov to 755 > changing mode of /usr/bin/pkplay to 755 > changing mode of /usr/bin/pkrace to 755 > changing mode of /usr/bin/pkpovgui to 755 > changing mode of /usr/bin/pkpatchtool to 755 > changing mode of /usr/bin/pksampler to 755 > cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; > print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps > cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory > make: *** [python_install] Error 1 > > I need to update the Makefile. > > > apart from setting the soundtouch SAMETYPE to float i also had to add: > #include <soundtouch/STTypes.h> > and changed: > typedef SAMPLETYPE sample_t; > to: > typedef soundtouch::SAMPLETYPE sample_t; > in pkglobals.h, in order to get pkaudio to compile. > that's wierd! I wonder why mine was compiling ok. > > > > > On 10/8/05, Patrick Stinson <pat...@gc...> wrote: > >> first off, the compile error i a problem with soundtouch. you have to >> specify if you want to use float or integer samples using a >> preprocessor directive in STTypes.h, *before* you compile the >> library. pkaudio uses float samples. some linux distributions use >> float samples, some use integer samples. I would just set it to float >> and install the library yourself. >> >> none of the programs that play audio (like pkplay) will work without >> the server. the server *is* the audio component. >> >> >> as far as the "bad magic number" error from importing the pixmaps >> file, that's some kind of python error. I have been looking for a >> good way to package all of the pixmaps for the various parts of my >> code. ideally there would be a python module that you can just >> import. Since pyc files are not platform-independent, I should erase >> that one from version control and replace it with the .py file. There >> is a compatibility problem with pyuic-embedded pixmap data, between >> ppc and x86 though, too. It must have something to do with >> endianness. maybe I should have two copies. >> >> I fixed the pixmap problem. 'svn up' and try again. >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-10 18:50:03
|
oh ight, yeah, I lost the install docs. when I re-orged the source tree. need to re-write them. your input is *greatly* appreaciated! On Oct 8, 2005, at 7:38 PM, cies wrote: > okay i understand it better now... > i also try to jot down what i do in order to get it installed, since i > didnt find any INSTALL of README. > > right now i get: > cies@linux:~/src/repos> make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > error: /usr/bin/pkmoduletool: Operation not permitted > make: *** [python_install] Error 1 > cies@linux:~/src/repos> sudo make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > changing mode of /usr/bin/pkmakepov to 755 > changing mode of /usr/bin/pkplay to 755 > changing mode of /usr/bin/pkrace to 755 > changing mode of /usr/bin/pkpovgui to 755 > changing mode of /usr/bin/pkpatchtool to 755 > changing mode of /usr/bin/pksampler to 755 > cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; > print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps > cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory > make: *** [python_install] Error 1 > > > > > apart from setting the soundtouch SAMETYPE to float i also had to add: > #include <soundtouch/STTypes.h> > and changed: > typedef SAMPLETYPE sample_t; > to: > typedef soundtouch::SAMPLETYPE sample_t; > in pkglobals.h, in order to get pkaudio to compile. > > > > > > On 10/8/05, Patrick Stinson <pat...@gc...> wrote: > >> first off, the compile error i a problem with soundtouch. you have to >> specify if you want to use float or integer samples using a >> preprocessor directive in STTypes.h, *before* you compile the >> library. pkaudio uses float samples. some linux distributions use >> float samples, some use integer samples. I would just set it to float >> and install the library yourself. >> >> none of the programs that play audio (like pkplay) will work without >> the server. the server *is* the audio component. >> >> >> as far as the "bad magic number" error from importing the pixmaps >> file, that's some kind of python error. I have been looking for a >> good way to package all of the pixmaps for the various parts of my >> code. ideally there would be a python module that you can just >> import. Since pyc files are not platform-independent, I should erase >> that one from version control and replace it with the .py file. There >> is a compatibility problem with pyuic-embedded pixmap data, between >> ppc and x86 though, too. It must have something to do with >> endianness. maybe I should have two copies. >> >> I fixed the pixmap problem. 'svn up' and try again. >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Pksampler-devel mailing list >> Pks...@li... >> https://lists.sourceforge.net/lists/listinfo/pksampler-devel >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: cies <cie...@gm...> - 2005-10-09 04:42:28
|
sorry i dont understand this: cies@linux:~/src/repos> vi pk/gui/pixmaps/core.py # this works! cies@linux:~/src/repos> cp pk/gui/pixmaps/core.pyc . cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory i have to go to bed. _c. On 10/8/05, cies <cie...@gm...> wrote: > okay i understand it better now... > i also try to jot down what i do in order to get it installed, since i > didnt find any INSTALL of README. > > right now i get: > cies@linux:~/src/repos> make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > error: /usr/bin/pkmoduletool: Operation not permitted > make: *** [python_install] Error 1 > cies@linux:~/src/repos> sudo make install > python setup.py install > running install > running build > running build_py > running build_scripts > running install_lib > running install_scripts > changing mode of /usr/bin/pkmoduletool to 755 > changing mode of /usr/bin/pkmakepov to 755 > changing mode of /usr/bin/pkplay to 755 > changing mode of /usr/bin/pkrace to 755 > changing mode of /usr/bin/pkpovgui to 755 > changing mode of /usr/bin/pkpatchtool to 755 > changing mode of /usr/bin/pksampler to 755 > cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; > print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps > cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory > make: *** [python_install] Error 1 > > > > > apart from setting the soundtouch SAMETYPE to float i also had to add: > #include <soundtouch/STTypes.h> > and changed: > typedef SAMPLETYPE sample_t; > to: > typedef soundtouch::SAMPLETYPE sample_t; > in pkglobals.h, in order to get pkaudio to compile. > > > > > > On 10/8/05, Patrick Stinson <pat...@gc...> wrote: > > first off, the compile error i a problem with soundtouch. you have to > > specify if you want to use float or integer samples using a > > preprocessor directive in STTypes.h, *before* you compile the > > library. pkaudio uses float samples. some linux distributions use > > float samples, some use integer samples. I would just set it to float > > and install the library yourself. > > > > none of the programs that play audio (like pkplay) will work without > > the server. the server *is* the audio component. > > > > > > as far as the "bad magic number" error from importing the pixmaps > > file, that's some kind of python error. I have been looking for a > > good way to package all of the pixmaps for the various parts of my > > code. ideally there would be a python module that you can just > > import. Since pyc files are not platform-independent, I should erase > > that one from version control and replace it with the .py file. There > > is a compatibility problem with pyuic-embedded pixmap data, between > > ppc and x86 though, too. It must have something to do with > > endianness. maybe I should have two copies. > > > > I fixed the pixmap problem. 'svn up' and try again. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussion= s, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Pksampler-devel mailing list > > Pks...@li... > > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > > > |
From: cies <cie...@gm...> - 2005-10-09 04:30:04
|
On 10/8/05, cies <cie...@gm...> wrote: > sorry i dont understand this: > > cies@linux:~/src/repos> vi pk/gui/pixmaps/core.py # this works! > cies@linux:~/src/repos> cp pk/gui/pixmaps/core.pyc . > cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory sorry, sorry, sorry! i have overseen a c in pyC... sorry. i fixed the error by importing this file ones from the python prompt so i got further, but not till the 'end' (a simple sound playing over my speakers though pkaudio) afer 'sudo make install' i tried: cies@linux:~/src/repos/build/scripts-2.4> ./pkplay /opt/kde3/share/sounds/KDE_Startup.wav detected server crash Traceback (most recent call last): File "./pkplay", line 20, in ? s =3D pk.audio.Sample(sys.argv[1]) File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 224, in __init__ core.loadModule('pksample') File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 818, in loadModule return _recvNull() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 242, in _recvNull ret =3D _recv() File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 218, in _r= ecv raise ConnectionError('detected server crash') pk.audio.core.ConnectionError: detected server crash (while the server was running and didnt crash) then i tried it later, and it didnt 'crash' any more (yet it also didnt wor= k) cies@linux:~/src/repos/build/scripts-2.4> ./pkplay /opt/kde3/share/sounds/KDE_Startup.wav Traceback (most recent call last): File "./pkplay", line 15, in ? if not pk.audio.start_server(): File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 25, in start_server realtime=3Drealtime, File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 575, in co= nnect raise e KeyboardInterrupt and cies@linux:~/src/repos/build/scripts-2.4> ./pksampler Traceback (most recent call last): File "./pksampler", line 69, in ? pksampler =3D PKSampler() File "./pksampler", line 23, in __init__ rack.SplashRack.__init__(self, buttons=3D14) File "/usr/lib/python2.4/site-packages/pk/gui/rack/splashrack.py", line 55, in __init__ self.initialize() File "./pksampler", line 30, in initialize pk.audio.start_server() File "/usr/lib/python2.4/site-packages/pk/audio/modules.py", line 25, in start_server realtime=3Drealtime, File "/usr/lib/python2.4/site-packages/pk/audio/core.py", line 575, in co= nnect raise e KeyboardInterrupt somehow it looks like it is stuck in an connection look or what. well, a bit further at least! thanks, _c. > i have to go to bed. > _c. > > > > > > On 10/8/05, cies <cie...@gm...> wrote: > > okay i understand it better now... > > i also try to jot down what i do in order to get it installed, since i > > didnt find any INSTALL of README. > > > > right now i get: > > cies@linux:~/src/repos> make install > > python setup.py install > > running install > > running build > > running build_py > > running build_scripts > > running install_lib > > running install_scripts > > changing mode of /usr/bin/pkmoduletool to 755 > > error: /usr/bin/pkmoduletool: Operation not permitted > > make: *** [python_install] Error 1 > > cies@linux:~/src/repos> sudo make install > > python setup.py install > > running install > > running build > > running build_py > > running build_scripts > > running install_lib > > running install_scripts > > changing mode of /usr/bin/pkmoduletool to 755 > > changing mode of /usr/bin/pkmakepov to 755 > > changing mode of /usr/bin/pkplay to 755 > > changing mode of /usr/bin/pkrace to 755 > > changing mode of /usr/bin/pkpovgui to 755 > > changing mode of /usr/bin/pkpatchtool to 755 > > changing mode of /usr/bin/pksampler to 755 > > cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; > > print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps > > cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory > > make: *** [python_install] Error 1 > > > > > > > > > > apart from setting the soundtouch SAMETYPE to float i also had to add: > > #include <soundtouch/STTypes.h> > > and changed: > > typedef SAMPLETYPE sample_t; > > to: > > typedef soundtouch::SAMPLETYPE sample_t; > > in pkglobals.h, in order to get pkaudio to compile. > > > > > > > > > > > > On 10/8/05, Patrick Stinson <pat...@gc...> wrote: > > > first off, the compile error i a problem with soundtouch. you have to > > > specify if you want to use float or integer samples using a > > > preprocessor directive in STTypes.h, *before* you compile the > > > library. pkaudio uses float samples. some linux distributions use > > > float samples, some use integer samples. I would just set it to float > > > and install the library yourself. > > > > > > none of the programs that play audio (like pkplay) will work without > > > the server. the server *is* the audio component. > > > > > > > > > as far as the "bad magic number" error from importing the pixmaps > > > file, that's some kind of python error. I have been looking for a > > > good way to package all of the pixmaps for the various parts of my > > > code. ideally there would be a python module that you can just > > > import. Since pyc files are not platform-independent, I should erase > > > that one from version control and replace it with the .py file. There > > > is a compatibility problem with pyuic-embedded pixmap data, between > > > ppc and x86 though, too. It must have something to do with > > > endianness. maybe I should have two copies. > > > > > > I fixed the pixmap problem. 'svn up' and try again. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: > > > Power Architecture Resource Center: Free content, downloads, discussi= ons, > > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > > _______________________________________________ > > > Pksampler-devel mailing list > > > Pks...@li... > > > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > > > > > > |
From: cies <cie...@gm...> - 2005-10-09 03:45:33
|
okay i understand it better now... i also try to jot down what i do in order to get it installed, since i didnt find any INSTALL of README. right now i get: cies@linux:~/src/repos> make install python setup.py install running install running build running build_py running build_scripts running install_lib running install_scripts changing mode of /usr/bin/pkmoduletool to 755 error: /usr/bin/pkmoduletool: Operation not permitted make: *** [python_install] Error 1 cies@linux:~/src/repos> sudo make install python setup.py install running install running build running build_py running build_scripts running install_lib running install_scripts changing mode of /usr/bin/pkmoduletool to 755 changing mode of /usr/bin/pkmakepov to 755 changing mode of /usr/bin/pkplay to 755 changing mode of /usr/bin/pkrace to 755 changing mode of /usr/bin/pkpovgui to 755 changing mode of /usr/bin/pkpatchtool to 755 changing mode of /usr/bin/pksampler to 755 cp pk/gui/pixmaps/core.pyc `python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()"`/pk/gui/pixmaps cp: cannot stat `pk/gui/pixmaps/core.pyc': No such file or directory make: *** [python_install] Error 1 apart from setting the soundtouch SAMETYPE to float i also had to add: #include <soundtouch/STTypes.h> and changed: typedef SAMPLETYPE sample_t; to: typedef soundtouch::SAMPLETYPE sample_t; in pkglobals.h, in order to get pkaudio to compile. On 10/8/05, Patrick Stinson <pat...@gc...> wrote: > first off, the compile error i a problem with soundtouch. you have to > specify if you want to use float or integer samples using a > preprocessor directive in STTypes.h, *before* you compile the > library. pkaudio uses float samples. some linux distributions use > float samples, some use integer samples. I would just set it to float > and install the library yourself. > > none of the programs that play audio (like pkplay) will work without > the server. the server *is* the audio component. > > > as far as the "bad magic number" error from importing the pixmaps > file, that's some kind of python error. I have been looking for a > good way to package all of the pixmaps for the various parts of my > code. ideally there would be a python module that you can just > import. Since pyc files are not platform-independent, I should erase > that one from version control and replace it with the .py file. There > is a compatibility problem with pyuic-embedded pixmap data, between > ppc and x86 though, too. It must have something to do with > endianness. maybe I should have two copies. > > I fixed the pixmap problem. 'svn up' and try again. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Pksampler-devel mailing list > Pks...@li... > https://lists.sourceforge.net/lists/listinfo/pksampler-devel > |
From: Patrick S. <pat...@gc...> - 2005-10-08 21:05:35
|
first off, the compile error i a problem with soundtouch. you have to specify if you want to use float or integer samples using a preprocessor directive in STTypes.h, *before* you compile the library. pkaudio uses float samples. some linux distributions use float samples, some use integer samples. I would just set it to float and install the library yourself. none of the programs that play audio (like pkplay) will work without the server. the server *is* the audio component. as far as the "bad magic number" error from importing the pixmaps file, that's some kind of python error. I have been looking for a good way to package all of the pixmaps for the various parts of my code. ideally there would be a python module that you can just import. Since pyc files are not platform-independent, I should erase that one from version control and replace it with the .py file. There is a compatibility problem with pyuic-embedded pixmap data, between ppc and x86 though, too. It must have something to do with endianness. maybe I should have two copies. I fixed the pixmap problem. 'svn up' and try again. |
From: cies <cie...@gm...> - 2005-10-08 14:38:58
|
in these file i got the compile errors as described below... repos/pkaudio/modules/pksequencer/sequencermodule.cpp repos/pkaudio/pkaudio/djengine.cpp i made it compile by adding the following cast to all method calls to the soundtouch lib's putSamples and receiveSamples: "(soundtouch::SAMPLETYPE*)&" i compiled and 'make installed'-ed i also had to install a few extra python packages on suse 9.3: kdebindings3-python, python-xml, python-devel yet after all this i'm still not able to run it: cies@linux:~/src/repos/bin> ./pkdemo Traceback (most recent call last): File "./pkdemo", line 4, in ? from pk.gui.widgets import * File "/usr/lib/python2.4/site-packages/pk/gui/__init__.py", line 3, in ? from widgets import WidgetStack File "/usr/lib/python2.4/site-packages/pk/gui/widgets/__init__.py", line 2, in ? from mixerslider import MixerSlider File "/usr/lib/python2.4/site-packages/pk/gui/widgets/mixerslider.py", line 3, in ? from pk.gui.pixmapwidgets import PixmapRangeControl File "/usr/lib/python2.4/site-packages/pk/gui/pixmapwidgets.py", line 5, = in ? from utils import ANIMATION_COEF File "/usr/lib/python2.4/site-packages/pk/gui/utils.py", line 4, in ? import pixmaps File "/usr/lib/python2.4/site-packages/pk/gui/pixmaps/__init__.py", line 7, in ? from core import * ImportError: Bad magic number in /usr/lib/python2.4/site-packages/pk/gui/pixmaps/core.pyc cies@linux:~/src/repos/bin> ./pksampler Traceback (most recent call last): File "./pksampler", line 6, in ? from pk.gui import run_widget File "/usr/lib/python2.4/site-packages/pk/gui/__init__.py", line 3, in ? from widgets import WidgetStack File "/usr/lib/python2.4/site-packages/pk/gui/widgets/__init__.py", line 2, in ? from mixerslider import MixerSlider File "/usr/lib/python2.4/site-packages/pk/gui/widgets/mixerslider.py", line 3, in ? from pk.gui.pixmapwidgets import PixmapRangeControl File "/usr/lib/python2.4/site-packages/pk/gui/pixmapwidgets.py", line 5, = in ? from utils import ANIMATION_COEF File "/usr/lib/python2.4/site-packages/pk/gui/utils.py", line 4, in ? import pixmaps File "/usr/lib/python2.4/site-packages/pk/gui/pixmaps/__init__.py", line 7, in ? from core import * ImportError: Bad magic number in /usr/lib/python2.4/site-packages/pk/gui/pixmaps/core.pyc cies@linux:~/src/repos/bin> ./pktestsuite File "./pktestsuite", line 24 from pk.tests.test_maskeditorTestMaskEditor ^ SyntaxError: invalid syntax cies@linux:~/src/repos/bin> ./pkdemo Traceback (most recent call last): File "./pkdemo", line 4, in ? from pk.gui.widgets import * File "/usr/lib/python2.4/site-packages/pk/gui/__init__.py", line 3, in ? from widgets import WidgetStack File "/usr/lib/python2.4/site-packages/pk/gui/widgets/__init__.py", line 2, in ? from mixerslider import MixerSlider File "/usr/lib/python2.4/site-packages/pk/gui/widgets/mixerslider.py", line 3, in ? from pk.gui.pixmapwidgets import PixmapRangeControl File "/usr/lib/python2.4/site-packages/pk/gui/pixmapwidgets.py", line 5, = in ? from utils import ANIMATION_COEF File "/usr/lib/python2.4/site-packages/pk/gui/utils.py", line 4, in ? import pixmaps File "/usr/lib/python2.4/site-packages/pk/gui/pixmaps/__init__.py", line 7, in ? from core import * ImportError: Bad magic number in /usr/lib/python2.4/site-packages/pk/gui/pixmaps/core.pyc cies@linux:~/src/repos/bin> ./pkplay /opt/kde3/share/sounds/KDE_Startup.wav # i hear nothing cies@linux:~/src/repos/bin> ./pkplay /opt/kde3/share/sounds/KDE_Startup.wav # again i hear nothing cies@linux:~/src/repos/bin> ./pkplay /opt/kde3/share/sounds/KDE_Startup.wav # this time it suddenly crashes pkaudiod Server crashed! (signal 11) detected server crash Traceback (most recent call last): File "./pkplay", line 20, in ? s =3D pk.audio.Sample(sys.argv[1]) File "/home/cies/src/repos/build/lib/pk/audio/modules.py", line 225, in __init__ Module.__init__(self, 'Sample', path) File "/home/cies/src/repos/build/lib/pk/audio/modules.py", line 100, in __init__ id =3D core.createModule(mtype, name) File "/home/cies/src/repos/build/lib/pk/audio/core.py", line 658, in createModule return _recvULong() File "/home/cies/src/repos/build/lib/pk/audio/core.py", line 227, in _recvULong ret =3D _recv() File "/home/cies/src/repos/build/lib/pk/audio/core.py", line 218, in _rec= v raise ConnectionError('detected server crash') pk.audio.core.ConnectionError: detected server crash Exception exceptions.AttributeError: <exceptions.AttributeError instance at 0x4041450c> in <bound method Sample.__del__ of <pk.audio.modules.Sample instance at 0x405f0f2c>> ignored cies@linux:~/src/repos/pk/tests> python test_audio.py # this runs fine ***************************************************************************= **** PK AUDIO TEST SUITE Make sure that you have started jackd before running any tests. ***************************************************************************= **** test_connection1 (__main__.TestConnection) ... ok test_parsing (__main__.TestMessages) ... ok test_addports (__main__.TestModules) ... ok test_createmodules1 (__main__.TestModules) ... ok test_createmodules2 (__main__.TestModules) ... ok test_loadfail (__main__.TestModules) ... no null in ['/home/cies/.pk/dspmodules', '/lib', '/usr/lib', '/usr/local/lib'], check LD_LIBRARY_PATH ok test_addsample (__main__.TestSamples) ... ok test_mainmixer (__main__.TestMixer) ... ok test_mixerports (__main__.TestMixer) ... ok ---------------------------------------------------------------------- Ran 9 tests in 8.811s OK well thats it for now, i give it more tries later... bye, _cies... ##### initial compile errors ####### sequencermodule.cpp: In member function `void PK::SequencerTrack::render()'= : sequencermodule.cpp:294: error: no matching function for call to `soundtouch::SoundTouch::putSamples(sample_t[16384], uint&)' /usr/local/include/soundtouch/SoundTouch.h:216: error: candidates are: virtual void soundtouch::SoundTouch::putSamples(const SAMPLETYPE*, unsigned int) sequencermodule.cpp:314: error: no matching function for call to `soundtouch::SoundTouch::putSamples(sample_t*&, unsigned int)' /usr/local/include/soundtouch/SoundTouch.h:216: error: candidates are: virtual void soundtouch::SoundTouch::putSamples(const SAMPLETYPE*, unsigned int) sequencermodule.cpp:326: error: no matching function for call to `soundtouch::SoundTouch::receiveSamples(sample_t[16384], unsigned int)' /usr/local/include/soundtouch/FIFOSamplePipe.h:184: error: candidates are: virtual uint soundtouch::FIFOProcessor::receiveSamples(SAMPLETYPE*, unsigned int) /usr/local/include/soundtouch/FIFOSamplePipe.h:196: error: =20 virtual uint soundtouch::FIFOProcessor::receiveSamples(unsigned int) djengine.cpp: In member function `void PK::DJEngine::pitchedRead(sample_t*, unsigned int, int)': djengine.cpp:163: error: no matching function for call to `soundtouch::SoundTouch::putSamples(sample_t[16384], unsigned int)' /usr/local/include/soundtouch/SoundTouch.h:216: error: candidates are: virtual void soundtouch::SoundTouch::putSamples(const SAMPLETYPE*, unsigned int) djengine.cpp:168: error: no matching function for call to `soundtouch::SoundTouch::receiveSamples(sample_t[16384], unsigned int)' /usr/local/include/soundtouch/FIFOSamplePipe.h:184: error: candidates are: virtual uint soundtouch::FIFOProcessor::receiveSamples(SAMPLETYPE*, unsigned int) /usr/local/include/soundtouch/FIFOSamplePipe.h:196: error: =20 virtual uint soundtouch::FIFOProcessor::receiveSamples(unsigned int) make: *** [.obj/djengine.o] Error 1 |
From: Patrick S. <pat...@gc...> - 2005-10-07 01:20:55
|
This is exactly what I was getting at in my just previous email. You've got it, and if implemented correctly should not be too difficult. The PK::Buffer is fairly simple, in that it reads from a non-buffered device (but I've found that these devices are generally buffered **very** well by the linux kernel itself!). I would be happy to guide you through the parts concerning my classes, and offer appropriate assistance (not much, on my tight schedule). PK::Segment holds a block of audio data, and is meant to contain any simple functions that pretain to that block (like reversing, muting, etc.). So you will probably be using that one too. I think those building blocks should make it fairly easy. let me know how it goes! -P ----- Original Message ----- From: cies <cie...@gm...> Date: Thursday, October 6, 2005 6:39 am Subject: Re: great work! > ohh, and for the x-y axis thing... > since psaux is an accumalated device i want to use one axis for the > scratching and the other for an optical fader. > > this will be an other (in this case non optical) mouse where from i > use the reader machanism to read an optical fader. with way i would > have a heavy duty digital scratching setup. > > with a external keypad i want to implement the general control over > the interface. all USB. > > but first things first. i need a realtime audio class that plays from > -aLot to +aLot. > > > ************** > > okay, i read myself into your lib (mainly the api and some code here > and there). looks neat. > > from what i understand it is basically a heavy abstration of media > (files and hardware) and a simple plugging mechanism, where modules > depend on the eventloop. > > this way the whole of plugging is easier, cleaner and more lightweight > than when using JACK to do this (which results in separate apps) -- > and more important there is a uniform way to handle properties! > > the DJEngine uses SoundTouch for pitch/stretch -ability. > > iiuc you propose to allow backwardsplaying by enableing the buffer > classes to read/walk backward somehow. then still use the soundtouch > classes for pitch/stretch but then to trick it into using the > backwards stream as if it was a regular stream. > > sounds feasable. > > do i understand you right? > > _cies. > |
From: cies <cie...@gm...> - 2005-10-06 14:25:33
|
hi all on the list... im new, im cies, im from rotterdam, and i have a compile error when trying to compile PKAudio (is there a special PKAudio list?)... i run SuSE 9.3 using python2.4, gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) and qt3.3.4... i checked out pkaudio from svn today and installed soundtouch by 'make install' (which make'd without even a warning). cies@linux:~/src/repos/pkaudio/pkaudio> make g++ -c -pipe -O2 -march=3Di586 -mcpu=3Di686 -fmessage-length=3D0 -Wall -g -= w -O2 -march=3Di586 -mcpu=3Di686 -fmessage-length=3D0 -Wall -g -fPIC=20 -D__LINUX_ALSASEQ__ -D__LINUX_LADSPA__ -I/usr/lib/qt3/mkspecs/default -I. -I/usr/include -I.ui/ -o .obj/djengine.o djengine.cpp djengine.cpp: In member function `void PK::DJEngine::pitchedRead(sample_t*, unsigned int, int)': djengine.cpp:163: error: no matching function for call to `soundtouch::SoundTouch::putSamples(sample_t[16384], unsigned int)' /usr/local/include/soundtouch/SoundTouch.h:216: error: candidates are: virtual void soundtouch::SoundTouch::putSamples(const SAMPLETYPE*, unsigned int) djengine.cpp:168: error: no matching function for call to `soundtouch::SoundTouch::receiveSamples(sample_t[16384], unsigned int)' /usr/local/include/soundtouch/FIFOSamplePipe.h:184: error: candidates are: virtual uint soundtouch::FIFOProcessor::receiveSamples(SAMPLETYPE*, unsigned int) /usr/local/include/soundtouch/FIFOSamplePipe.h:196: error: =20 virtual uint soundtouch::FIFOProcessor::receiveSamples(unsigned int) make: *** [.obj/djengine.o] Error 1 any suggestions? |
From: cies <cie...@gm...> - 2005-10-06 13:40:06
|
ohh, and for the x-y axis thing... since psaux is an accumalated device i want to use one axis for the scratching and the other for an optical fader. this will be an other (in this case non optical) mouse where from i use the reader machanism to read an optical fader. with way i would have a heavy duty digital scratching setup. with a external keypad i want to implement the general control over the interface. all USB. but first things first. i need a realtime audio class that plays from -aLot to +aLot. ************** okay, i read myself into your lib (mainly the api and some code here and there). looks neat. from what i understand it is basically a heavy abstration of media (files and hardware) and a simple plugging mechanism, where modules depend on the eventloop. this way the whole of plugging is easier, cleaner and more lightweight than when using JACK to do this (which results in separate apps) --=20 and more important there is a uniform way to handle properties! the DJEngine uses SoundTouch for pitch/stretch -ability. iiuc you propose to allow backwardsplaying by enableing the buffer classes to read/walk backward somehow. then still use the soundtouch classes for pitch/stretch but then to trick it into using the backwards stream as if it was a regular stream. sounds feasable. do i understand you right? _cies. |
From: Patrick S. <pat...@gc...> - 2005-10-05 17:42:01
|
http://www.patrickkidd.com/pk/main_blog/archive/2005/10/05/fixed- qmake-installs I am putting together a Doxygen file to generate API docs for pkaudio. They will be in the help center shortly. On Oct 5, 2005, at 5:47 AM, cies wrote: > the new thing i'll do is linking up my small /dev/psaux reader to your > pkaudio (i probably have a lopok at the code of your apps to do > something similar) > > then i should be able to do scratching (i already have a preliminary > hardware setup as in: i got the mouse reading the disc's movement on > the turntable) > > i let you know how far i got. > > i like the quote i read somewhere: "qt like api" > since quite some apis and software in the free-audio-apps scene have > very old C-sytle apis. > > one more question: how is the speed changing of the pkaudio? +/- how > many percent can i go? > > i think i need at least +/-300% to do a decent scratch. > > bye, > _c. > > > On 10/5/05, Patrick Stinson <pat...@gc...> wrote: > >> thanks for the compliments. I checked out KTurtle - congrats on >> getting some code into kdeedu! that's something to be proud of. >> > > thanks :) > > >> jack is pretty much the answer for connecting audio components in a >> platform-independent way. its simple, open and everywhere. >> >> What is pkausion? A pkaudio extension you will write? >> > > that is a duoblke typo, it got late yesterday. > > >> the pkaudio interface is my baby. It is three years old now, and the >> product of much thought and toil. writing an extension should be >> really easy, especially using pkmoduletool. >> >> I just wrote the new rack GUI/API last week, and I'm pretty proud of >> that, too. its evolved over the last year into something really >> useful - and useful means using a touchscreen. >> >> Let me know if you need any help writing your dsp and/or rack >> extension. >> >> oh, and cc the list if you can. >> >> On Oct 4, 2005, at 7:49 PM, cies wrote: >> >> >>> Hi Patrick, >>> >>> >>> i just want to show you my impulsive entouhiasm afer readming your >>> pages... >>> >>> >>> since a few years im into free programming, mailny C++/Qt/KDE (i >>> wrote >>> KTurtle) and python/ruby stuff. but eventually i'd like to get more >>> and more into audio programming. >>> >>> i found your libs and apps in im really charmed. i hope to soon have >>> an app using the pkausion lib for connecting my Technics 1210mkII to >>> my pc for some hardcore scratching. >>> >>> you must have seen TermintorX and FinalScratch. I found a way to >>> connect a mouse to my turntable and i am doing some testing with it. >>> terminatorX is no nice code to work with so i decide to give it a >>> try. >>> >>> you'll here from me! (if you dant want let me know) >>> >>> gotta sleep now, >>> _cies. >>> >>> >>> p.s.: you think reason changed the world? AbletonGLive is much more >>> revolutionary (IMO) and you see Steinberg knows it for CuBase gets >>> more Ableton like functions every release. And ableton gets more and >>> more CuBase functions. >>> >>> >>> more revolutionary music apps: >>> - the tracker >>> - the studio (CuBase and co) >>> - the app for the masses (FruityLoops) >>> - the plugger (Buzz) >>> - the slik plugger (Reason) >>> - the live looping all connecting tool (ableton) >>> >>> >>> since all these apps tend to grow towards eachother an OpenFramework >>> (platform independent all connecting) might become the answer one >>> day. >>> >>> This OpenAudioFramework is just a funny vision that i have (we migh >>> can discuss it) but i dont expect it to happen. in the mean time i >>> like to build small things that yield audible results. >>> >>> >> >> > |