Re: [LAD] build troubles with gtklick
dominic, ralf, thanks for this hint, however... On 04/08/2013 02:39 AM, Dominique Michel wrote: Le Mon, 08 Apr 2013 01:16:37 +0200, Jörn Nettingsmeier netti...@stackingdwarves.net a écrit : File /usr/lib/python2.7/site-packages/gtklick/klick_backend.py, line 12, in module import liblo ImportError: /usr/lib64/python2.7/site-packages/liblo.so: undefined symbol: lo_address_new_with_proto i have tried both liblo-0.26 and current liblo svn, no luck. now the python paths in this openSUSE tumbleweed install are a horrible mess, with three different python versions and libs in /usr/lib, /usr/lib64, and /usr/local/lib64. but they all seem to be found, and i made sure that the liblo.so mentioned in the error message is actually the one from your pyliblo package (by copying it manually). i removed the build directory of pyliblo for each try, and also recreated liblo.c via cython. how do i proceed to fix this? python is a mess in itself because we have python 2 and 3, and the shebang of many python programs is set as #!/usr/bin/python, which doesn't tell the system which version to use. You have to adjust the shebangs so that the scripts will use the correct version. Something like #!/usr/bin/python2.7 i've tried both python2 and python2.7 in the hashbang. but the error remains the same. to me it looks like a pyliblo/liblo version mismismatch, but i'm not sure -- Jörn Nettingsmeier Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487 Meister für Veranstaltungstechnik (Bühne/Studio) Tonmeister (VDT) http://stackingdwarves.net ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] build troubles with gtklick
On Mon, April 8, 2013 8:38 pm, Jörn Nettingsmeier wrote: dominic, ralf, thanks for this hint, however... On 04/08/2013 02:39 AM, Dominique Michel wrote: Le Mon, 08 Apr 2013 01:16:37 +0200, Jörn Nettingsmeier netti...@stackingdwarves.net a écrit : File /usr/lib/python2.7/site-packages/gtklick/klick_backend.py, line 12, in module import liblo ImportError: /usr/lib64/python2.7/site-packages/liblo.so: undefined symbol: lo_address_new_with_proto i have tried both liblo-0.26 and current liblo svn, no luck. now the python paths in this openSUSE tumbleweed install are a horrible mess, with three different python versions and libs in /usr/lib, /usr/lib64, and /usr/local/lib64. but they all seem to be found, and i made sure that the liblo.so mentioned in the error message is actually the one from your pyliblo package (by copying it manually). i removed the build directory of pyliblo for each try, and also recreated liblo.c via cython. how do i proceed to fix this? python is a mess in itself because we have python 2 and 3, and the shebang of many python programs is set as #!/usr/bin/python, which doesn't tell the system which version to use. You have to adjust the shebangs so that the scripts will use the correct version. Something like #!/usr/bin/python2.7 i've tried both python2 and python2.7 in the hashbang. but the error remains the same. to me it looks like a pyliblo/liblo version mismismatch, but i'm not sure Why not run it in virtualenv and bypass the suse packaging library system? -- Patrick Shirkey Boost Hardware Ltd ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] build troubles with gtklick
Le Mon, 08 Apr 2013 01:16:37 +0200, Jörn Nettingsmeier netti...@stackingdwarves.net a écrit : hi dominic! first of all, thanks for sharing your tools - klick has saved the day by adding a much-needed jack-transport aware metronome to a sooperlooper setup. now i'm a lazy bastard and want to use gtklick, but even though it compiles and installs fine, it barfs when i start is, like so: nettings@kleineronkel:/usr/lib/python2.7/site-packages/gtklick gtklick Traceback (most recent call last): File /usr/bin/gtklick, line 14, in module from gtklick.gtklick import GTKlick File /usr/lib/python2.7/site-packages/gtklick/gtklick.py, line 30, in module import klick_backend File /usr/lib/python2.7/site-packages/gtklick/klick_backend.py, line 12, in module import liblo ImportError: /usr/lib64/python2.7/site-packages/liblo.so: undefined symbol: lo_address_new_with_proto i have tried both liblo-0.26 and current liblo svn, no luck. now the python paths in this openSUSE tumbleweed install are a horrible mess, with three different python versions and libs in /usr/lib, /usr/lib64, and /usr/local/lib64. but they all seem to be found, and i made sure that the liblo.so mentioned in the error message is actually the one from your pyliblo package (by copying it manually). i removed the build directory of pyliblo for each try, and also recreated liblo.c via cython. how do i proceed to fix this? Here on gentoo, gtklick depend on klick with osc support. And liblo (liblo-0.26 here) is for osc support. Are you sure klick have osc support enabled? Dominique best, jörn -- We have the heroes we deserve. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
[LAD] jack ringbuffer usage
Hi, I'm trying to use jack's ringbuffer like this: - initialization: jack_ringbuffer_t * ringBuf = jack_ringbuffer_create(sizeof(jack_default_audio_sample_t) * (116)); memset (ringBuf-buf, 0, ringBuf-size) ; - jack process callback: jack_default_audio_sample_t buf[numChannels]; size_t read_cnt = 0; for (_frameCounter=0; _frameCounter nFrames; _frameCounter++) { read_cnt = jack_ringbuffer_read(ringBuf, (void*)buf, sample_size * numChannels); ^ error } but g++ won't compile the code and report this error: invalid conversion from 'void*' to 'char*' [-fpermissive] /usr/local/include/jack/ringbuffer.h:136: error: initializing argument 2 of 'size_t jack_ringbuffer_read(jack_ringbuffer_t*, char*, size_t)' [-fpermissive] passing -fpermissive gets the program running but is it the right way to do it? Thanks -- Raphaël. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 8, 2013 at 12:45 PM, Raphaël BOLLEN raphael.bol...@mobistar.be wrote: error: invalid conversion from 'void*' to 'char*' [-fpermissive] jack_ringbuffer_read() expects the buffer pointer to be of type char* not void*. The char* should just be interpreted as pointer, as the data is data, which is not necessarily a char. Change your case from (void*) to (char*) and you won't need -fpermissive :) HTH, -H ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On 04/08/2013 01:51 PM, Harry van Haaren wrote: On Mon, Apr 8, 2013 at 12:45 PM, Raphaël BOLLEN raphael.bol...@mobistar.be mailto:raphael.bol...@mobistar.be wrote: error: invalid conversion from 'void*' to 'char*' [-fpermissive] jack_ringbuffer_read() expects the buffer pointer to be of type char* not void*. The char* should just be interpreted as pointer, as the data is data, which is not necessarily a char. Change your case from (void*) to (char*) and you won't need -fpermissive :) HTH, -H Hi Harry, thanks for the information. -- Raphaël. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 8, 2013 at 1:01 PM, Raphaël BOLLEN raphael.bol...@mobistar.bewrote: Hi Harry, thanks for the information. Your welcome! I'm intrested in what kind of JACK program you're working on..? Also I'm collecting example / tutorial code for JACK programming, perhaps its of intrest to you: https://github.com/harryhaaren/openAudioProgrammingTutorials Cheers, -Harry ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On 04/08/2013 02:09 PM, Harry van Haaren wrote: On Mon, Apr 8, 2013 at 1:01 PM, Raphaël BOLLEN raphael.bol...@mobistar.be mailto:raphael.bol...@mobistar.be wrote: Hi Harry, thanks for the information. Your welcome! I'm intrested in what kind of JACK program you're working on..? It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. Also I'm collecting example / tutorial code for JACK programming, perhaps its of intrest to you: https://github.com/harryhaaren/openAudioProgrammingTutorials That's good information, thanks. Cheers, -Harry Best regards -- Raphaël. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 08, 2013 at 02:23:07PM +0200, Raphaël BOLLEN wrote: It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. My 4deckradio does exactly this, though I'm not sure it fits the bill, since it's targeting radio DJs. Cheers -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On 04/08/2013 02:24 PM, Adrian Knoth wrote: On Mon, Apr 08, 2013 at 02:23:07PM +0200, Raphaël BOLLEN wrote: It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. My 4deckradio does exactly this, though I'm not sure it fits the bill, since it's targeting radio DJs. Not really my use case but thanks for the link, I have it running here. How do you control the decks? mouse, key shortcuts, other? Cheers Cheers ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 8, 2013 at 8:23 AM, Raphaël BOLLEN raphael.bol...@mobistar.bewrote: On 04/08/2013 02:09 PM, Harry van Haaren wrote: On Mon, Apr 8, 2013 at 1:01 PM, Raphaël BOLLEN raphael.bol...@mobistar.be mailto:raphael.bollen@**mobistar.be raphael.bol...@mobistar.be wrote: Hi Harry, thanks for the information. Your welcome! I'm intrested in what kind of JACK program you're working on..? It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. all the xmms-based players do this (xmms, beep, beep2, audacious) gstreamer based players also do this across files, but not above play/stop. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 08, 2013 at 03:16:13PM +0200, Raphaël BOLLEN wrote: It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. My 4deckradio does exactly this, though I'm not sure it fits the bill, since it's targeting radio DJs. Not really my use case but thanks for the link, I have it running here. How do you control the decks? mouse, key shortcuts, other? You select a file and press play. You could also press F9 .. F12 to start/stop the decks. Or you own a studio surface which sends joystick button press/release events. If you have a USB joystick, simply connect it. Press Button 1, and it plays deck 1, release button 1, and it stops. Of course, you can also press Buttons 1-4 simultaneously to have all four decks playing at the same time. ;) Selecting a new file while one is playing queues the new file. Press stop or wait for the current one to finish to actually play it. (it's a safety for radio stations, so they're not accidentally stopping the current playback). Same for stop: program only quits if you stop all four decks and then press Ctrl+q. Well, the window-close button is a shortcut, but it wouldn't be visible in fullscreen mode. HTH -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On 04/08/2013 03:29 PM, Paul Davis wrote: On Mon, Apr 8, 2013 at 8:23 AM, Raphaël BOLLEN raphael.bol...@mobistar.be mailto:raphael.bol...@mobistar.be wrote: On 04/08/2013 02:09 PM, Harry van Haaren wrote: On Mon, Apr 8, 2013 at 1:01 PM, Raphaël BOLLEN raphael.bol...@mobistar.be mailto:raphael.bol...@mobistar.be mailto:raphael.bollen@__mobistar.be mailto:raphael.bol...@mobistar.be wrote: Hi Harry, thanks for the information. Your welcome! I'm intrested in what kind of JACK program you're working on..? It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. all the xmms-based players do this (xmms, beep, beep2, audacious) gstreamer based players also do this across files, but not above play/stop. Thanks Paul, these are really fine programs but mostly for playing stereo music. I need to play mono, stereo and 4 or more channels files on a headless system so it's a bit of a corner case application... Cheers -- Raphaël. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On 04/08/2013 03:49 PM, Adrian Knoth wrote: On Mon, Apr 08, 2013 at 03:16:13PM +0200, Raphaël BOLLEN wrote: It's yet another audio file player. My main interest (apart from playing audio :-) ) is that it makes permanent connections to jack instead of connecting / disconnecting when changing audio files. My 4deckradio does exactly this, though I'm not sure it fits the bill, since it's targeting radio DJs. Not really my use case but thanks for the link, I have it running here. How do you control the decks? mouse, key shortcuts, other? You select a file and press play. You could also press F9 .. F12 to start/stop the decks. Or you own a studio surface which sends joystick button press/release events. If you have a USB joystick, simply connect it. Press Button 1, and it plays deck 1, release button 1, and it stops. Of course, you can also press Buttons 1-4 simultaneously to have all four decks playing at the same time. ;) Selecting a new file while one is playing queues the new file. Press stop or wait for the current one to finish to actually play it. (it's a safety for radio stations, so they're not accidentally stopping the current playback). Same for stop: program only quits if you stop all four decks and then press Ctrl+q. Well, the window-close button is a shortcut, but it wouldn't be visible in fullscreen mode. HTH Thanks Adrian, may I suggest you copy paste this to your Readme.md file... ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] jack ringbuffer usage
On Mon, Apr 08, 2013 at 05:31:53PM +0200, Raphaël BOLLEN wrote: [4deckradio usage information] Thanks Adrian, may I suggest you copy paste this to your Readme.md file... Absolutely. Done and pushed. Thanks -- mail: a...@thur.de http://adi.thur.de PGP/GPG: key via keyserver ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] build troubles with gtklick
On 04/08/2013 01:25 PM, Dominique Michel wrote: Le Mon, 08 Apr 2013 01:16:37 +0200, Jörn Nettingsmeier netti...@stackingdwarves.net a écrit : hi dominic! first of all, thanks for sharing your tools - klick has saved the day by adding a much-needed jack-transport aware metronome to a sooperlooper setup. now i'm a lazy bastard and want to use gtklick, but even though it compiles and installs fine, it barfs when i start is, like so: nettings@kleineronkel:/usr/lib/python2.7/site-packages/gtklick gtklick Traceback (most recent call last): File /usr/bin/gtklick, line 14, in module from gtklick.gtklick import GTKlick File /usr/lib/python2.7/site-packages/gtklick/gtklick.py, line 30, in module import klick_backend File /usr/lib/python2.7/site-packages/gtklick/klick_backend.py, line 12, in module import liblo ImportError: /usr/lib64/python2.7/site-packages/liblo.so: undefined symbol: lo_address_new_with_proto i have tried both liblo-0.26 and current liblo svn, no luck. now the python paths in this openSUSE tumbleweed install are a horrible mess, with three different python versions and libs in /usr/lib, /usr/lib64, and /usr/local/lib64. but they all seem to be found, and i made sure that the liblo.so mentioned in the error message is actually the one from your pyliblo package (by copying it manually). i removed the build directory of pyliblo for each try, and also recreated liblo.c via cython. how do i proceed to fix this? Here on gentoo, gtklick depend on klick with osc support. And liblo (liblo-0.26 here) is for osc support. Are you sure klick have osc support enabled? yes. the problem might have been two different versions of liblo (one from the distro (0.25 iirc), and latest svn in /usr/local. not normally a problem, but apparently one was picked up during building and the other at runtime, leading to that symbol error above. getting rid of the duplicate liblo.so fixes the problem for me. thanks to all who replied with insightful python tips, jörn -- Jörn Nettingsmeier Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487 Meister für Veranstaltungstechnik (Bühne/Studio) Tonmeister VDT http://stackingdwarves.net ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev