Re: [PD] How to increase audio latency on linux?
So the current state of affairs is that it is not easily possible on linux? Is this in the responsibility of the application or the audio back-end? I ask in order to find out whether this is the right list to discuss the issue. It remains in the dark what the author of the ubuntugeek article meant by good, respectively bad sound quality. Is there any strong indication that this will help in increasing the latency? If my intent to have an as huge as possible latency in order to decrease likeliness of drop-outs, it is still advised to use a low latency kernel and run Pd/Jackd with realtime priorities? Or would I be better off then with standard settings? Roman On Die, 2012-12-04 at 08:54 -0800, Miller Puckette wrote: Looks like the snd_pcm_hw_params_set_buffer_size_near(0 call in s_audio_alsa.c is truncating the buffer rudely (when I tried an advance of 10 seconds it went from 48000 to 43690 (one device) and 2048 (a different one). I don't know any easy way around this... perhaps it's time to look at 'native' OSS in linux - http://www.ubuntugeek.com/howto-install-oss4-in-ubuntu-10-04-lucid-for-better-sound-quality.html cheers Miller On Tue, Dec 04, 2012 at 03:23:12PM +0100, Roman Haefeli wrote: Hi all For certain types (non-interactive) Pd patches, I'd like to be able to set a large audio buffer, say 1s or more. However, I figured I'm not able to do that on linux. With -alsa only the -blocksize parameter has any effect, but the maximum allowed value is 2048 which still feels like only 200ms. With -jack, neither the -audiobuf nor the -blocksize parameter have any effect. It seems only the parameters applied to jackd have any effect on the audio buffer, but non of the pd parameters (-audiobuf / -blocksize). In jackd, the maximum I can have is 4096 frames/period and 2 periods/buffer which corresponds to 186ms @ 44.1kHz. Setting any higher number for 'periods/buffer' results in the jackd server not staring. Recently, I figured that running Pd on Windows (7) with ASIO allows to set virtually any -audiobuf value which allows to do tons of stuff in zero logical time without risking a drop-out. I'd love to be able to do that as well in linux. Is it possible? Or is this is an advantage of Windows/Asio over Linux/Alsa? Cheers Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pb with readanysf compilation.
In fact i can't find the libgermelin-avdec-dev package package with the multimedia repository. François-Marie BILLARD Le 08/12/2012 21:54, IOhannes m zmölnig a écrit : On 12/08/2012 17:15, contact wrote: In file included from src/FifoVideoFrames.cpp:20: src/FifoVideoFrames.h:30:27: error: gmerlin/avdec.h: Aucun fichier ou dossier de ce type while it is sometimes simple for speakers of different languages to guess what a localized error-message means, it is often unintelligible. it would therefore be great, if you could try to provide english error messages. try temporarily setting your locale to C before running the failing build. e.g. $ LANG=C make apart from that, hans is probably right and you should install the libgmerlin-avdec-dev package. fgmasdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list attachment: contact.vcf___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pb with readanysf compilation.
http://packages.debian.org/search?keywords=libgmerlin-avdec-dev http://packages.ubuntu.com/search?keywords=libgmerlin-avdec-dev Its not in Debian/squeeze, it was added later. .hc On Dec 9, 2012, at 8:20 AM, contact wrote: In fact i can't find the libgermelin-avdec-dev package package with the multimedia repository. François-Marie BILLARD Le 08/12/2012 21:54, IOhannes m zmölnig a écrit : On 12/08/2012 17:15, contact wrote: In file included from src/FifoVideoFrames.cpp:20: src/FifoVideoFrames.h:30:27: error: gmerlin/avdec.h: Aucun fichier ou dossier de ce type while it is sometimes simple for speakers of different languages to guess what a localized error-message means, it is often unintelligible. it would therefore be great, if you could try to provide english error messages. try temporarily setting your locale to C before running the failing build. e.g. $ LANG=C make apart from that, hans is probably right and you should install the libgmerlin-avdec-dev package. fgmasdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list contact.vcf___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Pd won't open on Windows8
Hi, Since the 6th of december, the beta version (43.4) won't open on Windows 8. The installation is correct but the GUI appears and after a few seconds it disappears. The version Pd-043.4-extended - 20121205-windowsxp-i386 works perfectly. Any suggestion about this problem? Regards, Marc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] How to increase audio latency on linux?
grasping at straws but... maybe try Alsa using callbacks - so that Pd maintains the FIFO instead of having ALSA do it. I think you can do this by opening ALSA through portaudio, requesting blocking in Pd but replace #if defined(__APPLE__) #define FAKEBLOCKING #endif with just #define FAKEBLOCKING in s_audio_pa.c I haven't tried this - don't have time right now - but if you're willing I'd be eager to hear how it turns out :) Miller On Sun, Dec 09, 2012 at 11:12:01AM +0100, Roman Haefeli wrote: So the current state of affairs is that it is not easily possible on linux? Is this in the responsibility of the application or the audio back-end? I ask in order to find out whether this is the right list to discuss the issue. It remains in the dark what the author of the ubuntugeek article meant by good, respectively bad sound quality. Is there any strong indication that this will help in increasing the latency? If my intent to have an as huge as possible latency in order to decrease likeliness of drop-outs, it is still advised to use a low latency kernel and run Pd/Jackd with realtime priorities? Or would I be better off then with standard settings? Roman On Die, 2012-12-04 at 08:54 -0800, Miller Puckette wrote: Looks like the snd_pcm_hw_params_set_buffer_size_near(0 call in s_audio_alsa.c is truncating the buffer rudely (when I tried an advance of 10 seconds it went from 48000 to 43690 (one device) and 2048 (a different one). I don't know any easy way around this... perhaps it's time to look at 'native' OSS in linux - http://www.ubuntugeek.com/howto-install-oss4-in-ubuntu-10-04-lucid-for-better-sound-quality.html cheers Miller On Tue, Dec 04, 2012 at 03:23:12PM +0100, Roman Haefeli wrote: Hi all For certain types (non-interactive) Pd patches, I'd like to be able to set a large audio buffer, say 1s or more. However, I figured I'm not able to do that on linux. With -alsa only the -blocksize parameter has any effect, but the maximum allowed value is 2048 which still feels like only 200ms. With -jack, neither the -audiobuf nor the -blocksize parameter have any effect. It seems only the parameters applied to jackd have any effect on the audio buffer, but non of the pd parameters (-audiobuf / -blocksize). In jackd, the maximum I can have is 4096 frames/period and 2 periods/buffer which corresponds to 186ms @ 44.1kHz. Setting any higher number for 'periods/buffer' results in the jackd server not staring. Recently, I figured that running Pd on Windows (7) with ASIO allows to set virtually any -audiobuf value which allows to do tons of stuff in zero logical time without risking a drop-out. I'd love to be able to do that as well in linux. Is it possible? Or is this is an advantage of Windows/Asio over Linux/Alsa? Cheers Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] DTMF recognition / Goertzel algorithm in Pd?
Hi there, a friend is looking for a way to do DTMF recognition in Pd. I know there is this Goertzel algorithm http://en.wikipedia.org/wiki/Goertzel_algorithm and I wonder if anyone has already implemented something about it in PD. Maybe some other option? thanks Alex ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Sound localization
Hello people, I'm trying to build a patch with which I can locate a sound source with microphones (right now using the Playstation Move Camera with the build in 4 channel microphone array). So far I found out that there are 3 ways to locate sound sources (correct me if I'm wrong): 1. Energybased method: Basically you check the loudness of the sound with at least two different microphones in a microphone array. By doing this the microphone which is further away to the sound source gives a signal which is more quiet, so you can roughly determine the location. Problems: - You need a completely quiet room for best results - Walls reject the sound wave, which gives irregularities 2. Beamforming: You get the direction of the sound by delaying the array signals and summing them up, thus creating a direction response of the array. How the exact process works and why is a mystery to me so far. 3. Time Delay Estimation-based Localization: You calculate the delayed time of the amplitudes peaks and get the result in milliseconds. By this you can determine which microphone is closer to the sound source Attached is a small patch where I tried out the energy based method with the bonk utility, the results I get with that are quite sloppy Pegeldifferenz.pd Description: Binary data Anybody there who already tried something with locating sound in pd? Or got any good advice? Thanks in advance, Matthias___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] graph on parent problem?
Hi, I looked at your patch and it actually has nothing to do with the array being displayed via gop but rather the VU meter. Namely, your patch reads from the input and uses [env~] object to capture input values. What you didn't do, however, is given env~ object's buffer size, and I think it may default to some awfully small buffer size, so you are asking VU meter to update gui possibly thousands of times per second. To fix this, simply do env~ 16384 or some other power of 2 number and you will be fine. Checked here, after doing this it works fine. You can also try to enable gop but remove vu meter from it and I suspect it will run heck of a lot faster... If ever in doubt, you can always run pd-l2ork (or pd) with -d 3 flag which will output to console all the gui communication. I did this and found bunch of calls with RCOVER in one of the tags and traced that to vumeter external. HTH On 12/09/2012 05:36 AM, Oded Ben-Tal wrote: hello, Here is the offending patch. playsample is the subpatch that seems to be causing the problems. I turned off the graph on parent option. Let me know if it works with the option turned on. (I am a bit reluctant to install 2 versions of Pd on my system. I did it once, but because I'm not suffiecently good as a sys admin things got a bit messy for me...) Many thanks Oded ___ Oded Ben-Tal http://ccrma.stanford.edu/~oded o...@ccrma.stanford.edu -- Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Head, ICAT IMPACT Studio Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Patch bugged on pd-extended 0.43.4
Well... I can't run 0.42 libraries without administrator mode on win7.. :/ On Dream Studio (based Ubuntu 12.04.1) I only can install 0.43 and it stop to open some patchs I have.. Some suggestion to put operational pd-extended on my life?? hehehehe 2012/12/7 Hans-Christoph Steiner h...@at.or.at You can delete the registry settings for Pd-extended in: HKEY_LOCAL_MACHINE SOFTWARE Pd-extended The portable version might still write to the registry if you change the preferences. .hc On Dec 7, 2012, at 3:14 PM, Esteban Viveros wrote: Hum.. I'm using 0.42.5 installed version, and when I try to use 0.43.4 portable version, 0.42.5 stop to load libraries... When I try to use the pd-settings to fix the library load, I don't have sucess. Now I only can open my patchs with 0.42.5 running in administrator mode... :(... Some suggestion to fix that?? Delete manually with regedit pd-something?? 2012/12/7 Hans-Christoph Steiner h...@at.or.at If you download the zip build, then you can run it without installing it at all by double-clicking the 'pd-extended.bat file thats included there. .hc On Dec 6, 2012, at 8:36 PM, Esteban Viveros wrote: Pd libraries can't be loaded... I tried tge pd-settings.reg , but I only can run pd 0.42.5 with libraries on administrator mode.. :/ 2012/12/6 Hans-Christoph Steiner h...@at.or.at Ok, one more fix, this time I think I found the problem with your patch. There is an [image] that has no file or image name in it. It used to be invisible and create that error sometimes. I now made [image] throw an error and use a filler image when no image is specified. http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=16650 .hc On Dec 5, 2012, at 6:42 PM, Esteban Viveros wrote: hc. , I have the same error.. I tried Pd-0.43.4-extended-20121205 version, on Linux and on Windows 7 Home Premium x64... 2012/12/5 Hans-Christoph Steiner h...@at.or.at And back to the original problem. I am pretty sure I fixed the image UNHANDLED ERROR problem with these commits: http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=16648 http://pure-data.svn.sourceforge.net/viewvc/pure-data?view=revisionrevision=16649 try tomorrow's build and let me know. .hc On Dec 4, 2012, at 3:59 PM, Esteban Viveros wrote: I tried the zip version... And it don't work yet.. I have the message: (Tcl) UNHANDLED ERROR: couldn't open C:/Users/Esteban/Desktop/Square/: permission denied while executing image create photo img1eb1948 -file {C:/Users/Esteban/Desktop/Square/} (uplevel body line 189) invoked from within uplevel #0 $cmds_from_pd And now I have another mather... Pd-extended 0.42.5 can't load the pd extended library... :/ On 0.42.5 I have when I start it: [import] $Revision: 1.2 $ [import] is still in development, the interface could change! compiled against Pd version 0.42.5 GEM: Graphics Environment for Multimedia GEM: ver: 0.92.3 GEM: compiled: Mar 15 2010 GEM: maintained by IOhannes m zmoelnig GEM: Authors : Mark Danks (original version) GEM: Chris Clepper GEM: Cyrille Henry GEM: IOhannes m zmoelnig GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christop Steiner, et al. GEM: found a bug? miss a feature? please report it: GEM: homepage http://gem.iem.at/ GEM: bug-tracker http://sourceforge.net/projects/pd-gem/ GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/ GEM: compiled for SIMD architecture: SSE2 MMX GEM: using SSE2 optimization Gem Man: QT init OK cyclone: can't load library zexy: can't load library creb: can't load library cxc: can't load library iemlib: can't load library list-abs: can't load library mapping: can't load library markex: can't load library maxlib: can't load library mjlib: can't load library motex: can't load library oscx: can't load library pddp: can't load library pdogg: can't load library pmpd: can't load library sigpack: can't load library smlib: can't load library unauthorized: can't load library pan: can't load library hcs: can't load library jmmmp: can't load library ext13: can't load library ggee: can't load library iem_anything: can't load library ekext: can't load library flatgui: can't load library chaos: can't load library 2012/12/4 Hans-Christoph Steiner h...@at.or.at I think I fixed that recently, try today's build: http://puredata.info/downloads/pd-extended/releases/0.43.4 .hc On Dec 4, 2012, at 2:39 AM, Esteban Viveros wrote: I tried to open this patch on pd-extended 0.43.4 but they open very bugged... No cords.. On pd-extended 0.42.5 they are working well.. Something to do?? -- Esteban Viveros (27) 8815 7170 (27) 3066 0359 (11) 95761 4125 (11) 2738 7868
Re: [PD] data structures in abstractions
Hi, I noticed the gop doesn't work on pd-ext 0.42-5, but it works on 0.43-4 (w7). Another bug that was already there: if you drag one control point to outside the gop window, the struct doesn't respond to the mouse control anymore - although it still works properly. In my abstraction [jmmmp/bezier] I use messages to put the struct back into the gop boundaries. About the name and arguments always showing, it's a bit annoying. I think I made an extra [donecanvasdialog 1 -1 2 -20 120 120 -20 $1 $2 0 0, dirty 0( in [bezier] to enforce this choice. Maybe there's something broken in the code, that it doesn't let the option be taken? João Thanks Jonathan You are a magician. You said it works, so now it does no bugs. The only thing I can't get rid of is the datawindow name appearing in the graph on parent. No matter how many times I turn it off, once I save it and load it again, it comes back on. The name of the main graph on parent does not show, only of the subpatch I attached the abstraction here Cheers Eldad ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] DTMF recognition / Goertzel algorithm in Pd?
Well, actually he pointed the algorithm to me, as if he needed it, but checking what it is, seems like a more efficient FFT, suited for small processors, and he doesn't seem to need that. Maybe TimbreID is good for the job. Anyway, there's a C code in this wikipedia, anyone curious could make an external :-) cheers 2012/12/9 Alexandre Torres Porres por...@gmail.com Hi there, a friend is looking for a way to do DTMF recognition in Pd. I know there is this Goertzel algorithm http://en.wikipedia.org/wiki/Goertzel_algorithm and I wonder if anyone has already implemented something about it in PD. Maybe some other option? thanks Alex ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Sound localization
Mathias, Are you familiar with Interferometry? Used in localization of electromagnetic signals, among multitude of other applications. http://en.wikipedia.org/wiki/Interferometry Zax From: m.schae...@uni-weimar.de Date: Sun, 9 Dec 2012 23:15:31 +0100 To: pd-list@iem.at Subject: [PD] Sound localization Hello people, I'm trying to build a patch with which I can locate a sound source with microphones (right now using the Playstation Move Camera with the build in 4 channel microphone array). So far I found out that there are 3 ways to locate sound sources (correct me if I'm wrong): 1. Energybased method: Basically you check the loudness of the sound with at least two different microphones in a microphone array. By doing this the microphone which is further away to the sound source gives a signal which is more quiet, so you can roughly determine the location. Problems: - You need a completely quiet room for best results - Walls reject the sound wave, which gives irregularities 2. Beamforming: You get the direction of the sound by delaying the array signals and summing them up, thus creating a direction response of the array. How the exact process works and why is a mystery to me so far. 3. Time Delay Estimation-based Localization: You calculate the delayed time of the amplitudes peaks and get the result in milliseconds. By this you can determine which microphone is closer to the sound source Attached is a small patch where I tried out the energy based method with the bonk utility, the results I get with that are quite sloppy Anybody there who already tried something with locating sound in pd? Or got any good advice? Thanks in advance, Matthias ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] graph on parent problem?
My latest fixes should help with the problem you describe. Basically, the GUIs will only request a redraw when there is an actual change. Oded, can you try it with a Pd-extended 0.43.4 beta build? Or post the patch so I can try it. Another optimization I've been thinking of is sending GUI updates on a clock, so the updates will be sent at around 60Hz, since that's the rate the vast majority of screens update at these days. .hc On Dec 9, 2012, at 5:53 PM, Ivica Ico Bukvic wrote: Hi, I looked at your patch and it actually has nothing to do with the array being displayed via gop but rather the VU meter. Namely, your patch reads from the input and uses [env~] object to capture input values. What you didn't do, however, is given env~ object's buffer size, and I think it may default to some awfully small buffer size, so you are asking VU meter to update gui possibly thousands of times per second. To fix this, simply do env~ 16384 or some other power of 2 number and you will be fine. Checked here, after doing this it works fine. You can also try to enable gop but remove vu meter from it and I suspect it will run heck of a lot faster... If ever in doubt, you can always run pd-l2ork (or pd) with -d 3 flag which will output to console all the gui communication. I did this and found bunch of calls with RCOVER in one of the tags and traced that to vumeter external. HTH On 12/09/2012 05:36 AM, Oded Ben-Tal wrote: hello, Here is the offending patch. playsample is the subpatch that seems to be causing the problems. I turned off the graph on parent option. Let me know if it works with the option turned on. (I am a bit reluctant to install 2 versions of Pd on my system. I did it once, but because I'm not suffiecently good as a sys admin things got a bit messy for me...) Many thanks Oded ___ Oded Ben-Tal http://ccrma.stanford.edu/~oded o...@ccrma.stanford.edu -- Ivica Ico Bukvic, D.M.A Composition, Music Technology Director, DISIS Interactive Sound Intermedia Studio Director, L2Ork Linux Laptop Orchestra Head, ICAT IMPACT Studio Virginia Tech Department of Music Blacksburg, VA 24061-0240 (540) 231-6139 (540) 231-5034 (fax) disis.music.vt.edu l2ork.music.vt.edu ico.bukvic.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Pd won't open on Windows8
It won't open on any Windows probably since i broke it :-) I'm currently finishing up full Unicode support for Pd-extended on Windows. Once I push this, it should work again on Windows, and also have the nice advantage of being able to open files with full unicode filenames, i.e. üéßÅÏגוטן你好.pd .hc On Dec 9, 2012, at 2:31 PM, Marc D. Demers wrote: Hi, Since the 6th of december, the beta version (43.4) won't open on Windows 8. The installation is correct but the GUI appears and after a few seconds it disappears. The version Pd-043.4-extended - 20121205-windowsxp-i386 works perfectly. Any suggestion about this problem? Regards, Marc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list