Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I execute a Python script from Pure Data?

I know there are some tools out there for using Pure Data(Pd) within Python, so you can program and use Pd without using its GUI. I was wondering if anyone has tried the opposite. I want to send sequencing information into Python and process it with my Python script. Then I want to send the information to Pd.

So far I have written sequences to text files using the [msgfile] object in Pd. These can be opened and manipulated with Python but this involves switching to IDLE and manually running the program, writing out to a text file again, and finally reading from the file in Pd. If Pd can execute Python scripts this would save me the effort of writing my own objects in C or C++ or switching between programs and manually running my scripts.

like image 906
Rich Avatar asked Oct 20 '22 13:10

Rich


1 Answers

Yes, you can execute python scripts from within Pure Data with the pyext external by Thomas Grill: http://grrrr.org/research/software/py/

like image 186
Max N Avatar answered Oct 30 '22 01:10

Max N