Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so.
there already is a c program for sending data to pd over network, it's called pdsend.exe
Le 30/12/2015 15:29, jma@jeanmarie-adrien.net a écrit :
Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 jma@jeanmarie-adrien.net:
Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
he stated it is on windows….
On 30 Dec 2015, at 16:17, Antoine Rousseau antoine@metalu.net wrote:
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 <jma@jeanmarie-adrien.net mailto:jma@jeanmarie-adrien.net>: Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
all of this on windows...
sorry... But actually it may work on windows too ?
2015-12-30 16:50 GMT+01:00 Simon Iten itensimon@gmail.com:
he stated it is on windows….
On 30 Dec 2015, at 16:17, Antoine Rousseau antoine@metalu.net wrote:
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 jma@jeanmarie-adrien.net:
Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
The source for pdsend is in src/u_pdsend.c in any vanilla pd setup. The easiest thing would be to incorporate that into your program by replacing the argument list with a buffer containing a string with the values to be sent.
Martin
On Wed, Dec 30, 2015 at 10:50 AM, Simon Iten itensimon@gmail.com wrote:
he stated it is on windows….
On 30 Dec 2015, at 16:17, Antoine Rousseau antoine@metalu.net wrote:
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 jma@jeanmarie-adrien.net:
Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
… thanks for these elements. basically, my patches are on MacOs since decades (...), and for a specific experiment I’ve to collaborate with a guy working in C on windows, who (this person) does not know anything about pd : so the question was
but maybe things are not so simple :) and maybe i can juste say to send from C to the « network » or kind of internal machine bus (no hint how this works on windows though !) hmm :) jm
Le 30 déc. 2015 à 17:27, Martin Peach chakekatzil@gmail.com a écrit :
The source for pdsend is in src/u_pdsend.c in any vanilla pd setup. The easiest thing would be to incorporate that into your program by replacing the argument list with a buffer containing a string with the values to be sent.
Martin
On Wed, Dec 30, 2015 at 10:50 AM, Simon Iten itensimon@gmail.com wrote: he stated it is on windows….
On 30 Dec 2015, at 16:17, Antoine Rousseau antoine@metalu.net wrote:
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 jma@jeanmarie-adrien.net: Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
try to use osc .
it makes your program run on a protocol, and makes it modular more easily ( adress another machine on the network, for instance)
2015-12-30 17:27 GMT+01:00 Martin Peach chakekatzil@gmail.com:
The source for pdsend is in src/u_pdsend.c in any vanilla pd setup. The easiest thing would be to incorporate that into your program by replacing the argument list with a buffer containing a string with the values to be sent.
Martin
On Wed, Dec 30, 2015 at 10:50 AM, Simon Iten itensimon@gmail.com wrote:
he stated it is on windows….
On 30 Dec 2015, at 16:17, Antoine Rousseau antoine@metalu.net wrote:
Hi,
you could send your data to stdout, then pipe it through command "pdsend", and finally get it back in Pd with [netreceive] ; but are you working on a Unix-like sytem ?
2015-12-30 15:29 GMT+01:00 jma@jeanmarie-adrien.net:
Hello C natives
What is the most straightforward way to have a running C program send data (global variables) to a PD patch for real time control (say a vector of ten floats, 80 times per second), means : what names for fonctions (procedures) in C, and what objects in PD (netreceive ? dumposc ?), all of this on windows... Tks JM
PS Although i wrote thousands of lines of C++ in my young age, i dont remember ANYTHING about it now, except semi columns and {braces} or so. _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
look for an osc library for c++ , there are many
i had an experience of this kind , this library was used
oscpack -- Open Sound Control packet manipulation library http://www.audiomulch.com/~rossb/code/oscpack
tks ! Le 30 déc. 2015 à 19:39, Py Fave pyfave@gmail.com a écrit :
look for an osc library for c++ , there are many
i had an experience of this kind , this library was used
oscpack -- Open Sound Control packet manipulation library http://www.audiomulch.com/~rossb/code/oscpack
On 12/30/2015 09:18 PM, jma@jeanmarie-adrien.net wrote:
tks ! Le 30 déc. 2015 à 19:39, Py Fave pyfave@gmail.com a écrit :
look for an osc library for c++ , there are many
i had an experience of this kind , this library was used
oscpack -- Open Sound Control packet manipulation library http://www.audiomulch.com/~rossb/code/oscpack
i would recommend liblo [1] instead. it seems to be the most commonly used library these days. it is also more actively developed than oscpack.
liblo states that it is an OSC-implementation for "POSIX systems" (which w32 is not), but afaik it does work on w32.
mgsd IOhannes