[PD] audio output AND input with the Rpi?
Hey folks, Apologies as this post is not strictly about Pd, though Pd will be a crucial part of my final setup so whatever solution I find ought to work with Pd. Also, there is a chance the issue might lie with Pd. I just don't know. I'm looking for a usb bus-powered audio interface for the Rpi that can take a stereo input and provide stereo output *at the same time.* * * I have tried a couple different images and a couple different audio interfaces, to no avail. Perhaps there's something can be done with one of these setups to get it working? First, the Pd-LA custom Raspian (v1) image and Pd 43.2: ..with Behringer UCA202 (at 44100khz): Alsamixer picks the device up but the input section shows nothing. Pd (gui) audio preferences allows selection of the interface for both input and output. Output only is lovely and clean but as soon as the device is selected for audio input the audio quality drops horrendously (vaguely recognisable from the original signal).. ..although what gives me hope is I CAN software monitor the input (poorly) in 'Test Audio and MIDI' with this arrangement. ..with Behringer UCA202 (at 48000khz): Output only in Pd is poor (beating and popping sound - possibly sounds like a samp rate conversion issue). When device is selected as Pd input software monitoring is possible and oddly, though the result is still poor, there is effectively no drop in quality from having the device selected only for output and the monitored signal sounds drastically better than at 44100khz. ..with Turtle Beach Amigo II* (at 44100): Alsamixer shows both input and output and allows to change gain of both. If plugged in from boot and only the output is selected in Pd it works but with a lot of jitter. Selecting the device for input too causes a further drop in audio quality although again I can software monitor the input in 'Test Audio and MIDI' If plugged in after boot the OS crashes. The Satellite CCRMA (operating via ssh) and Pd-extended: ..with Behringer UCA202 (at 44100 and 48000): Alsamixer picks the device up but again the input section shows nothing. If I have the device plugged in from boot then I get the same behaviour with it as I do in Pd vanilla on the Pd-LA Raspian image, ie. software input monitoring but at an extremely poor quality. If I don't plug the device in from boot I see it in Pd audio prefs but get this: ALSA input error (snd_pcm_open): No such file or directory ALSA output error (snd_pcm_open): No such file or directory from the Pd terminal and this ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card oops: ALSA cards not reported in order? from the ssh terminal. ..with Turtle Beach Amigo II* (at 44100khz): Alsamixer shows both input and output and allows to change gain of both. If plugged in from boot and then only output selected in Pd I get clean audio out. If I try to select the Turtle Beach as audio inout in Pd then Pd stalls indefinitely when I try to 'Test Audio and MIDI' or make anything in a patch. Same direct input monitoring by default. Also get ALSA input error (snd_pcm_open): Device or resource busy ALSA output error (snd_pcm_open): Device or resource busy from the Pd terminal if I don't have it plugged in from boot, though no message in ssh terminal. *It also appears that by default the Turtle Beach does direct input monitoring of some sorts, the output stage sending out a clean copy of whatever signal is going into the input stage whenever the device is plugged into a usb port. With the Pd-LA image this occurred simultaneously while input monitoring in Pd. I guess this is part of the design of the Turtle Beach, though their documentation is devoid of any useful info regards this. If this is the case then this ain't the sound card for me, though clearly some might find this a very useful feature. Just to give a bit more info about what I'm attempting: I wish to run the stereo input from the Turtle Beach through Pd, play with the audio signal using data from an accelerometer (not nearly there yet) and then send the audio out through the Turtle Beach's stereo output. Apologies for the essay. Hopefully my findings are useful for others and hopefully I can get my rig working! Help muchly appreciated. I've probably left out some crucial bit of info so please shout me if I have! Cheers, Chris Jack. Chris Jack *art/research* http://itsmrjack.com/ *discus jockeying/sound art* http://soundcloud.com/itsmrjack/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] flext install (for another amateur)
Hey Thomas, Thanks for getting back to me on this. To be honest I thought I was being a bit stupid so am actually a little relieved that it wasn't *just* me - though of course it is unfortunate that it's not currently working with 0.43.4. I have actually had success compiling it for Pd vanilla 0.44 ...though it refused to put the files in Contents/Resources/extra - as I had instructed it to. However I was able to use it to build the GApop external successfully on first go. Thanks for your time, Chris. On 20 April 2013 19:57, Thomas Grill wrote: > Hi Chris, > i have now looked into the Pd-extended 0.43.4 package. The layout of files > has been changed in a way that it is incompatible to the flext build system > (and also to the autoconf version). > I will have to see how i can fix this. > What you can do for the time being is download Miller's vanilla version > and compile your external object using that. You can then use the binary > with pd-extended as well. > all the best, > gr~~~ > > -- > Thomas Grill > http://grrrr.org > > > > Am 17.04.2013 um 13:40 schrieb Chris Jack: > > Hi Thomas, > > Thanks a lot for your help. > > Seeing as I have not actively installed gcc from any other source I > suppose it must be the one from the xcode/developer sdk. Btw, my sdk is > 'MacOSX10.6.sdk' - the one appropriate for osx 10.6.8, afaik! > > My Pd (extended 0.43.4) installation does actually contain the g_canvas.h > file in /Applications/Pd-extended.app/Contents/Resources/include/pdextended > > I have the config-mac-gcc...etc file pointing PDPATH to > /Applications/Pd-extended.app/Contents/Resources ...need I point a > different variable to Resources/include/pdextended in order to see the > header files? > > Cheers, > > > > On 16 April 2013 15:42, Thomas Grill wrote: > >> Hi Chris, >> first of all, do you use the gcc coming with xcode or from some other >> source (fink, macports)? >> It seems that your platform SDK is somewhat strange, judging from the >> autoconfig build as it doesn't contain BlockMoveData and BlockZero. >> As for the buildsys build, it seems that your pd distribution >> (pd-extended?) doesn't contain the g_canvas.h file, which is a header file >> "private" to pd, but necessary for flext to work. Some pd distros do >> contain it, while others don't. >> Btw., there's a mailing list specialized to flext matters. >> all the best, Thomas >> -- >> Thomas Grill >> http://g.org >> >> >> >> Am 16.04.2013 um 15:59 schrieb Chris Jack: >> >> Hey folks, >> >> I have been trying in vain to install flext (cvs download) on my 10.6.8 >> snow leopard Mac. I've tried it every which way - both using the buildsys >> and autoconfig - and just cannot get the bugger to build. I have refreshed >> before each try with a new copy of flext via cvs. >> >> Using autoconfig I seem to get this error during build: >> >> flutil.cpp: In static member function ‘static void >> flext_single::CopyMem(void*, const void*, int)’: >> flutil.cpp:33: error: ‘BlockMoveData’ was not declared in this scope >> flutil.cpp: In static member function ‘static void >> flext_single::ZeroMem(void*, int)’: >> flutil.cpp:44: error: ‘BlockZero’ was not declared in this scope >> make[1]: *** [libflext_pd_s_a-flutil.o] Error 1 >> make: *** [install-recursive] Error 1 >> >> And using buildsys these errors: >> >> Chris-Jacks-Computer-2:flext chrisjack$ bash build.sh pd gcc >> make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=pd COMPILER=gcc >> BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext >> USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release >> TARGETTYPE=single _build_ >> buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for >> target `pd-darwin/release-single' >> buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands >> for target `pd-darwin/release-single' >> mkdir -p pd-darwin/release-single >> mkdir -p pd-darwin/release-single/ >> g++ -c -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD >> -I/Applications/Pd-extended.app/Contents/Resources//src source/flext.h -o >> pd-darwin/release-single/flext.h.gch >> touch source/flbase.cpp >> mkdir -p ./ >> g++ -c -ffast-math -Os -ftree-vectorize -isysroot >> /Developer/SDKs/MacOSX10.6.sdk -arch i386 -mmmx -msse -msse2 -msse3 >> -mtune=prescott -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I >> pd-darwin/release-single >> -I/Applications/Pd-extended.app/Contents/Resources//src source
Re: [PD] flext install (for another amateur)
Hi Thomas, Thanks a lot for your help. Seeing as I have not actively installed gcc from any other source I suppose it must be the one from the xcode/developer sdk. Btw, my sdk is 'MacOSX10.6.sdk' - the one appropriate for osx 10.6.8, afaik! My Pd (extended 0.43.4) installation does actually contain the g_canvas.h file in /Applications/Pd-extended.app/Contents/Resources/include/pdextended I have the config-mac-gcc...etc file pointing PDPATH to /Applications/Pd-extended.app/Contents/Resources ...need I point a different variable to Resources/include/pdextended in order to see the header files? Cheers, On 16 April 2013 15:42, Thomas Grill wrote: > Hi Chris, > first of all, do you use the gcc coming with xcode or from some other > source (fink, macports)? > It seems that your platform SDK is somewhat strange, judging from the > autoconfig build as it doesn't contain BlockMoveData and BlockZero. > As for the buildsys build, it seems that your pd distribution > (pd-extended?) doesn't contain the g_canvas.h file, which is a header file > "private" to pd, but necessary for flext to work. Some pd distros do > contain it, while others don't. > Btw., there's a mailing list specialized to flext matters. > all the best, Thomas > -- > Thomas Grill > http://g.org > > > > Am 16.04.2013 um 15:59 schrieb Chris Jack: > > Hey folks, > > I have been trying in vain to install flext (cvs download) on my 10.6.8 > snow leopard Mac. I've tried it every which way - both using the buildsys > and autoconfig - and just cannot get the bugger to build. I have refreshed > before each try with a new copy of flext via cvs. > > Using autoconfig I seem to get this error during build: > > flutil.cpp: In static member function ‘static void > flext_single::CopyMem(void*, const void*, int)’: > flutil.cpp:33: error: ‘BlockMoveData’ was not declared in this scope > flutil.cpp: In static member function ‘static void > flext_single::ZeroMem(void*, int)’: > flutil.cpp:44: error: ‘BlockZero’ was not declared in this scope > make[1]: *** [libflext_pd_s_a-flutil.o] Error 1 > make: *** [install-recursive] Error 1 > > And using buildsys these errors: > > Chris-Jacks-Computer-2:flext chrisjack$ bash build.sh pd gcc > make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=pd COMPILER=gcc > BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext > USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release > TARGETTYPE=single _build_ > buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for > target `pd-darwin/release-single' > buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands > for target `pd-darwin/release-single' > mkdir -p pd-darwin/release-single > mkdir -p pd-darwin/release-single/ > g++ -c -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD > -I/Applications/Pd-extended.app/Contents/Resources//src source/flext.h -o > pd-darwin/release-single/flext.h.gch > touch source/flbase.cpp > mkdir -p ./ > g++ -c -ffast-math -Os -ftree-vectorize -isysroot > /Developer/SDKs/MacOSX10.6.sdk -arch i386 -mmmx -msse -msse2 -msse3 > -mtune=prescott -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I > pd-darwin/release-single > -I/Applications/Pd-extended.app/Contents/Resources//src source/flbase.cpp > -o pd-darwin/release-single/flbase.opp_i386 > source/flbase.cpp:29:22: error: g_canvas.h: No such file or directory > source/flbase.cpp: In static member function ‘static bool > flext_obj_single::GetParamSym(t_atom&, const t_symbol*, _glist*)’: > source/flbase.cpp:130: error: ‘canvas_realizedollar’ was not declared in > this scope > source/flbase.cpp:133: error: ‘canvas_realizedollar’ was not declared in > this scope > make[1]: *** [pd-darwin/release-single/flbase.opp_i386] Error 1 > make: *** [build-release-single] Error 2 > > I am pointing the variables in the txt files to the correct locations, of > that I am sure. I have also begun with a fresh install of Pd-extended > 0.43.4 - could this be it? Too new-a-build? Need I use Pd vanilla to get > flext to play ball? I'd really rather not as I already have a bunch of > stuff invested in Pd-extended and I want to avoid having to compile > countless externals just to run the same projects in vanilla (though this > would be a very long-winded option). > > Your helpings are highly appreciated. > > Cheers, > CJ. > > > -- > Chris Jack > > *art/research* > http://itsmrjack.com/ > > *discus jockeying/sound art* > http://soundcloud.com/itsmrjack/ > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > > -- Chris Jack *art/research* http://itsmrjack.com/ *discus jockeying/sound art* http://soundcloud.com/itsmrjack/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] flext install (for another amateur)
Hey folks, I have been trying in vain to install flext (cvs download) on my 10.6.8 snow leopard Mac. I've tried it every which way - both using the buildsys and autoconfig - and just cannot get the bugger to build. I have refreshed before each try with a new copy of flext via cvs. Using autoconfig I seem to get this error during build: flutil.cpp: In static member function ‘static void flext_single::CopyMem(void*, const void*, int)’: flutil.cpp:33: error: ‘BlockMoveData’ was not declared in this scope flutil.cpp: In static member function ‘static void flext_single::ZeroMem(void*, int)’: flutil.cpp:44: error: ‘BlockZero’ was not declared in this scope make[1]: *** [libflext_pd_s_a-flutil.o] Error 1 make: *** [install-recursive] Error 1 And using buildsys these errors: Chris-Jacks-Computer-2:flext chrisjack$ bash build.sh pd gcc make -f ./buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=pd COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release TARGETTYPE=single _build_ buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for target `pd-darwin/release-single' buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands for target `pd-darwin/release-single' mkdir -p pd-darwin/release-single mkdir -p pd-darwin/release-single/ g++ -c -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I/Applications/Pd-extended.app/Contents/Resources//src source/flext.h -o pd-darwin/release-single/flext.h.gch touch source/flbase.cpp mkdir -p ./ g++ -c -ffast-math -Os -ftree-vectorize -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -mmmx -msse -msse2 -msse3 -mtune=prescott -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I pd-darwin/release-single -I/Applications/Pd-extended.app/Contents/Resources//src source/flbase.cpp -o pd-darwin/release-single/flbase.opp_i386 source/flbase.cpp:29:22: error: g_canvas.h: No such file or directory source/flbase.cpp: In static member function ‘static bool flext_obj_single::GetParamSym(t_atom&, const t_symbol*, _glist*)’: source/flbase.cpp:130: error: ‘canvas_realizedollar’ was not declared in this scope source/flbase.cpp:133: error: ‘canvas_realizedollar’ was not declared in this scope make[1]: *** [pd-darwin/release-single/flbase.opp_i386] Error 1 make: *** [build-release-single] Error 2 I am pointing the variables in the txt files to the correct locations, of that I am sure. I have also begun with a fresh install of Pd-extended 0.43.4 - could this be it? Too new-a-build? Need I use Pd vanilla to get flext to play ball? I'd really rather not as I already have a bunch of stuff invested in Pd-extended and I want to avoid having to compile countless externals just to run the same projects in vanilla (though this would be a very long-winded option). Your helpings are highly appreciated. Cheers, CJ. -- Chris Jack *art/research* http://itsmrjack.com/ *discus jockeying/sound art* http://soundcloud.com/itsmrjack/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Arduino, Pd and ultrasonics: HELP needed for degree project!
Collin, it worked! Great stuff, thank you. On 28 September 2010 06:43, Collin wrote: > I've done this a few times adding a char and a space before the value and > sorting it out with a [route] > The char goes in quotes, and don't forget the space! > > On Sep 27, 2010, at 10:59 AM, pd-list-requ...@iem.at wrote: > > // SRF02 READING // > > > sendCommand(sensorAddress, readInches); > > > delay(70); > > > setRegister(sensorAddress, resultRegister); > > > int sensorReading = readData(sensorAddress, 2); > > > Serial.print("s "); > > Serial.println(sensorReading); > > > > delay (200); > > > > > // GPD12 READING // > > > sensorValue = analogRead(sensorPin); > > > int range = (6787 / sensorValue); > > > Serial.print("r "); > > Serial.println(range); > > > > then in the patch: > > [comport 8 9600] > | > [ascii2pd CR] > | > [route list] > | > [route s r] > > > Collin > > collinoldham.com > > > > -- Mr Jack Discus Jockey Audio Tweeker Musical Protagonist itsmrj...@gmail.com http://soundcloud.com/mrjack http://www.myspace.com/itsmrjack http://earshaveeyes.blogspot.com http://campari0safari.wordpress.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Arduino, Pd and ultrasonics: HELP needed for degree project!
Collin, Pat, thanks for your replies. Collin, I will try the route method in a short while... Pat, that's interesting you use Messenger. I considered it but as I got SMS working quite quickly I've since disregarded it. I will give it a go. Do you mean to apply the identifier at the arduino stage, and if so, what does the code look like? And how does Pd decipher it? I'm sorry, but nothing is obvious to me at this stage - it's all new and I'm trying to make sense of it. Many thanks On 28 September 2010 06:43, wrote: > Send Pd-list mailing list submissions to >pd-list@iem.at > > To subscribe or unsubscribe via the World Wide Web, visit >http://lists.puredata.info/listinfo/pd-list > or, via email, send a message with subject or body 'help' to >pd-list-requ...@iem.at > > You can reach the person managing the list at >pd-list-ow...@iem.at > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pd-list digest..." > > > Today's Topics: > > 1. Re: GUI speed (Ivica Ico Bukvic) > 2. Re: [PD-announce] dither8 (tramage) (ydego...@gmail.com) > 3. Re: [PD-announce] dither8 (tramage) (ydego...@gmail.com) > 4. Re: [PD-announce] dither8 (tramage) (ydego...@gmail.com) > 5. Re: [PD-announce] dither8 (tramage) (ydego...@gmail.com) > 6. Re: Arduino, Pd and ultrasonics: HELP needed for degree > project! (patrick) > 7. Re: Arduino, Pd and ultrasonics: HELP needed for degree > project! (Collin) > > > -- > > Message: 1 > Date: Mon, 27 Sep 2010 23:21:36 -0400 > From: Ivica Ico Bukvic > Subject: Re: [PD] GUI speed > To: PD List > Message-ID: > Content-Type: text/plain; charset=utf-8 > > Another thing to consider is if you have large GUI objects that are > updating quickly (e.g. number2 with huge fonts). This will also potentially > tax the cpu. > > Bernardo Barros wrote: > > >you can post your patch, so maybe we will discover the problem. > >for the abstraction one solution is to change the name of your hacked > >abstractions and send them as well. > > > >2010/9/27 Andr?s Mur?nyi : > >> well, i meant a bug in my patch... > >> what i understood was that it overloaded the CPU on Jo?o's box too > >> > >> 2010/9/28 Bernardo Barros > >>> > >>> maybe this is a bug od pd-gui? > >>> (well, poor performance *is* a bug) > >>> > >>> 2010/9/27 Andr?s Mur?nyi : > >>> > On Mon, Sep 27, 2010 at 11:45 AM, Jo?o Pais > > >>> > wrote: > >>> >>> > >>> >>> Well, it's not very exportable as i have modified/overwritten some > >>> >>> abstractions made by others. Baaad practice! > >>> >>> I'm trying to attach it now and i hope i works. Need pd-extended > and > >>> >>> many > >>> >>> libs from it, moonlib for sure. > >>> >> > >>> >> not much, some abstractions are missing. > >>> >> > >>> >> anyway, even with the patch not working, I can see something is > >>> >> definitively wrong. just by opening it with audio off, I get > consistent > >>> >> 50% > >>> >> cpu usage - which means it's using a whole processor of my dual > core. > >>> >> unless > >>> >> one of the missing abs is the problem, I would suggest you spend > some > >>> >> hours > >>> >> bug tracking. > >>> > > >>> > yes, i've spent some nights bug tracking, and at one point i thought > ask > >>> > the > >>> > list too... :o) > >>> > something is definitely wrong! > >>> > > >>> > > >>> >> On Mon, Sep 27, 2010 at 3:34 PM, Ivica Ico Bukvic > wrote: > >>> >> FWIW you may want to try to simply cut pieces of the patch while it > is > >>> >> running and observe the cpu load meter until it drops. That way you > >>> >> should > >>> >> be able to locate the problem quicker. > >>> >> > >>> > > >>> > yes, i was trying thing like this, and will go on until i find what i > >>> > messed > >>> > up. > >>> > I was just starting to think that it's normal and i have to live with > it > >>> > (or > >>> > get a few more CPU cores) but now you guys reassured me that the bug > is > >>> > somewhere... in the haystack > >>> > > >>> > Andras > >>> > > >>> > ___ > >>> > Pd-list@iem.at mailing list > >>> > UNSUBSCRIBE and account-management -> > >>> > http://lists.puredata.info/listinfo/pd-list > >>> > > >>> > > >> > >> > >> > >> -- > >> Muranyi Andras > >> > > > >___ > >Pd-list@iem.at mailing list > >UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > -- > > Message: 2 > Date: Tue, 28 Sep 2010 05:45:48 +0200 > From: "ydego...@gmail.com" > Subject: Re: [PD] [PD-announce] dither8 (tramage) > To: pd-list@iem.at > Cc: gridflow-...@artengine.ca, pd-annou...@iem.at > Message-ID: <4ca164ec.2020...@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > are you naked-? > > Mathieu Bouchard wrote: > > > > http://gridflow.ca/gallery/dither8.png > > http://gridflow.ca/galler