I search c or c++ or objective-c code, to send and receive signals from my application from/to Pd. In Pd I will send and receive signals with netreceive~ and netsend~.
I know, I could do it with libpd but I think this is overload, only to send and receive the signal from and to Pd to my application.
netreceive~ and netsend~ comunication with other app
@obb64 You need to be able to stream audio to and from your app....... and so you need to ask the question of the developers. What is the app?
As you say, Pd already has the capability with [netsend~] and [netreceive~].
@whale-av The App is called Sonifyer and I am the developer.
With the connection to PD, there would be much more possibilities of sonification.
In Sonifyer there is a AURenderCallback function. Now I try to send the signals of each channel to pd.
I need a netreceive and send function, which works just like the pd netreceive~ /netsend~function.
@obb64 [netreceive] and [netsend] exist in Pure Data as well....
I know that it is not the same code...... but some work has been published that allows communication with Pd using Python..... https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/ ....... the code being very human readable....
There are links in that post to information about pdsend and pdreceive that should be useful.
Those executables should already be in your Pure Data installation.
That might give some clues I hope.........
@whale-av Thank You for the tipp. But I need communication on the signal level. This is much more complex, as send small messages to pd. The problem is, that on the signal level the data must be time accurate. I will try now to understand the netreceive~and netsend~ source code, and hope I can write a function which can work in the outer pd world.
@obb64 Sorry.... your last post suggested data as well.
You "just" need to be able to stream audio from your app, and to receive a broadcast audio stream as well......
The method must be detailed in the app programming help somewhere......