ofxPd


#81

Thanks, it works now, it was the strangest bug though, I had to use your instance.pd patch, delete all objects in it and replace them with the patch I was using and save-replace my patch with it…

Sometimes things like this seem almost like black magic…

For future reference: If anyone else works with ofxPd and ofxOpenNI in the future, you might want to try also to initialize pd before the kinect sensor.


#82

Hi all !!

Well we’re working on a real-time audiovisual sampling engine called ofxPlaymodes https://github.com/eloimaduell/ofxPlaymodes. For the audio part we’re using ofxPd and we’ve been adding some externals before as stated on ofxPd Github from Danomatika … https://github.com/danomatika/ofxPd#adding-pure-data-external-libraries-to-ofxpd.

Now we’ve got to a point where we would like to include XSample objects, more precisely the XGroove one … http://puredata.info/downloads/xsample

But i can’t get to understand how to do it as i can’t find the “library_setup()” method on the files of xsample as the instructions say … Also there is a main.h file on the external code that gets conflicts …
The code repository of the external is here : https://svn.grrrr.org/ext/trunk/xsample/source/

So we’re kind of lost now and we’re not sure how to proceed …

Anyone has more experience then us to tell us if it’s possible to add this object to an ofxPd project ?
Or any place where to find more information on how to include this ?

Thanks a lot !

e*


#83

ofxPd is now updated for OF 0.8.0. The previous stable version can be found in the 0.7.4 tag.

libpd has been moved into the libs folder so you may need to update your projects.


#84

Howdy all,

I’m looking for someone interested in helping maintain this addon. Any takers?


#85

hi dan & all,

I´m trying to run some examples on an iphone5. I got problems compiling the ofxpd exampleIOS on Xcode. I tried both of_v0.8.3_ios_release and of_v0.8.0_ios_release.
I was able to run the same example successfully on of_v0.8.3_osx_release.

Is anyone having similar issues with ofxpd on an iphone?

Thanks,

Antonio


#86

Hey @Zant,
I have had success running the ofxPd examples on iphone, ipad, osx but not without errors. Can you be more descriptive about the compiling errors you are seeing? Also, I made a repo that has an ios and osx template that should be set up and ready to go with a pure data file and ofxPd addon. Give it a shot.

Hope that helps.

–Mike


#87

ofxPd is now updated to the latest libpd source which uses pd 0.46-4. It also now loads the extra externals by default (expr, bonk~, fiddle~, etc). I also fixed some issues with the OF Project Generator so the PG in the next OF release will be able to add the defines needed by ofxPd in Xcode correctly.

Note: there are a few newer libpd source files, so make sure you readd the libpd sources to your project if you’re updating.


#88

Hi,
Wasn’t sure if this was the place to post, but I’m having trouble getting ofxpd to build.

I’m running a fresh install of Win7 and Code::Blocks + MinGW.

I followed the instructions for adding to an existing project and got an error that the compiler couldn’t find the pthread library. I managed to find the files needed for pthread online so copied them into the MinGW folder and renamed them to satisfy the compiler.

Now I’m getting a load of undefined references and I have no idea what’s causing them as everything seems to be ok?

Errors:

obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_fetch_and_or_4'|
obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_fetch_and_or_4'|
obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_fetch_and_or_4'|
obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_fetch_and_or_4'|
obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_val_compare_and_swap_4'|
obj\Release\libs\libpd\libpd_wrapper\util\ringbuffer.o:ringbuffer.c|| undefined reference to `__sync_val_compare_and_swap_4'|
obj\Release\libs\libpd\libpd_wrapper\z_libpd.o:z_libpd.c|| undefined reference to `expr_setup'|
obj\Release\libs\libpd\pure-data\extra\fiddle~\fiddle~.o:fiddle~.c|| undefined reference to `pd_fft'|
obj\Release\libs\libpd\pure-data\extra\sigmund~\sigmund~.o:sigmund~.c|| undefined reference to `mayer_realfft'|
obj\Release\libs\libpd\pure-data\src\d_fft.o:d_fft.c|| undefined reference to `mayer_ifft'|
obj\Release\libs\libpd\pure-data\src\d_fft.o:d_fft.c|| undefined reference to `mayer_fft'|
obj\Release\libs\libpd\pure-data\src\d_fft.o:d_fft.c|| undefined reference to `mayer_realfft'|
obj\Release\libs\libpd\pure-data\src\d_fft.o:d_fft.c|| undefined reference to `mayer_realifft'|

Does anyone have a clue what’s wrong here? I should mention I have in no way shape or form a clue what I am doing here.


#89

Did you sort this out? It looks like some leftover build objects between the latest ofxPd update and a previous version. There were a few source files added and a few removed. You probably just need to regenerate the project files and clean/rebuild the project.


#90

Unfortunately I never managed to get the example projects to build on their own - it’s either this error or some error about pthread_mutex. I did however manage to get around it by manually importing ofxpd into a blank project and copying the code over.


#91

Actually, in the last major update, I removed the example project files from repo and they need to be generated by the ProjectGenerator. That’s why the old ones didn’t work.


#92

That’s what I was doing - copying over the source files from the example folders and then getting the project generator to make project files etc. Knowing me though, It’s probably something I was doing wrong.


#93

Yeah, this was actually my fault due to some missing libpd files. I’ve fixed in an update to ofxPd today. Update ofxPd and regenerate your project.


#94

Changes today:

  • updated to libpd & pd version 0.46-6 (includes new bob~ external)
  • old polling interface removed since it’s no longer part of PdBase, use queued=true in init() & receiveMessages()/receieveMidi()
  • fixed examples not building correctly due to remaining polling interface code
  • fixed build issue due to missing expr~ and d_fft_fftsg.c sources

#95

Hi Francesco,
Have you got ofxpd working nicely for you on android now?
Thanks
Miles


#96

Hi Miles,
sorry but too much time has passed since my post (3 years) and I cannot remember what worked and how.

Regards,
Francesco


#97

Hi All, pdExample and pitchShifter build successfully but pdMultiExample segfaults in ofx 8.4 linux 64 CB with current version ofxPd, anyone with same issue?


#98

“library_setup()” in this case is probably “xsample_setup();” :smiley:

EDIT: Looks like it might be “xsample_main()” judging from the main.cpp, although the usual pd external conventions noted in the readme is LIBRARYNAME_setup(). In this case, xsample is using Flext which abstracts writing dsp externals between pd and max so I imagine “xsample_setup()” is probably declared via Flext for compatibility with pd.


#100

Yeah, that’s due to the instance functions not being currently thread safe and the main and audio threads trying to grab them at the same time. I added a mutex to the example so it no longer segfaults.


#101

Hi All!

Is there a way to get around the dropouts you get when you refill a soundfiler? Is this is due to soundfiler not being multithreaded?
We have to do this dynamically in app. At the moment we use ofsoundplayer to mask the loading dropouts whilst PD silently starts and stops underneath.
This feels a bit hacks to me, so I was wondering if there was any c++ trickery that can solve this issue

Many thanks
Miles