How can I send audio from Processing to ChucK/Pure Data over OSC?

1.3k Views Asked by At

I have a Processing program which derives a string of information which will eventually be turned into sound. This is similar to how photo sounder works, or metasynth, where pixels are turned into sound. I am hoping to be able to stream a portion of this information to ChucK or Pure Data.

For now I do not want to actually process the audio within Processing. That program is being used only to generate the information from a touch interface and series of images.

I know that I can send data type b (for blob) from Processing (I think, I cannot find any examples) using OSC.

I cannot find any examples on how to receive such information in ChucK or Pure Data and then use it for generating sound.

I admit I may not be searching for the correct terms on some of these processes so any help would be appreciated.

2

There are 2 best solutions below

0
On

On the Processing side, you should have a look on oscP5 contributed library that works very well for me. Link : http://www.sojamo.de/libraries/oscP5/ I don't remember which library i used within pd to handle osc, but i think it has been made easier directly through [netreceive] on most recent versions (0.46). At least i can say that I could do the reverse (realtime graphing spectra in Processing from pd analysis). Hope this helps,

6
On

All though it might be possible, OSC is designed for control values, not audio. To receive those OSC messages there are methods in each program to do so. In Pd you can choose from a few libraries which provide OSC functionality, for example mrpeach, or pd-osc and pd-iemnet libraries in the Debian repositories.