Hi,
I'm wondering if someone would have ideas on how to read data in from stdin, or a /dev/ file or a fifo in pure-data. I've got another program producing data (basically a stream of numbers) and i'd like it to set variables in purdata (e.g. to set the freq. of the osc~). I've tried piperead~ but it seems to want to take .wav data instead.
Is there a way in pure-data to do this?
Thanks for any help - it is appreciated.
-James
Send data from your data source via a socked using FUDI (look into the pure data src directory for *_pdsend.c) and use the [netreceive] object in pure-data. Or use MIDI.
Or load pyext and use files from there in a secondary thread. Or use modules "os" or "popen". (this means few lines of Python)
Or rewrite you program in Python. Or in PD. :)
There are also other ways.
Maurizio Umberto Puxeddu.
On Fri, 2003-03-14 at 02:44, James Fung wrote:
Hi,
I'm wondering if someone would have ideas on how to read data in from stdin, or a /dev/ file or a fifo in pure-data. I've got another program producing data (basically a stream of numbers) and i'd like it to set variables in purdata (e.g. to set the freq. of the osc~). I've tried piperead~ but it seems to want to take .wav data instead.
Is there a way in pure-data to do this?
Thanks for any help - it is appreciated.
-James
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
There's also the pipeio~ object from the ext13 extensions: http://pd.klingt.org/files/ I looked at the source code; the pipewrite~ object actually writes a wav file to a pipe, but the piperead~ object reads data from a pipe without checking if it's a wav stream. So you might be in luck with piperead~.
Or you can use the shell object from the ggee extensions: ftp://xdv.org/pub/gige/ggext/ I think version 0.24 should work. -- Marc
Le jeu 13/03/2003 à 20:44, James Fung a écrit :
Hi,
I'm wondering if someone would have ideas on how to read data in from stdin, or a /dev/ file or a fifo in pure-data. I've got another program producing data (basically a stream of numbers) and i'd like it to set variables in purdata (e.g. to set the freq. of the osc~). I've tried piperead~ but it seems to want to take .wav data instead.
Is there a way in pure-data to do this?
Thanks for any help - it is appreciated.
-James
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Should be fairly easy to write a tcl program that sends the programs output line by line to PD via local socket.
Ben
On Thursday, March 13, 2003, at 10:06 PM, Marc Lavallée wrote:
There's also the pipeio~ object from the ext13 extensions: http://pd.klingt.org/files/ I looked at the source code; the pipewrite~ object actually writes a wav file to a pipe, but the piperead~ object reads data from a pipe without checking if it's a wav stream. So you might be in luck with piperead~.
Or you can use the shell object from the ggee extensions: ftp://xdv.org/pub/gige/ggext/ I think version 0.24 should work. -- Marc
Le jeu 13/03/2003 à 20:44, James Fung a écrit :
Hi,
I'm wondering if someone would have ideas on how to read data in from stdin, or a /dev/ file or a fifo in pure-data. I've got another program producing data (basically a stream of numbers) and i'd like it to set variables in purdata (e.g. to set the freq. of the osc~). I've tried piperead~ but it seems to want to take .wav data instead.
Is there a way in pure-data to do this?
Thanks for any help - it is appreciated.
-James
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list