Can I execute a Python script from Pure Data?
Asked Answered
G

1

6

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.

Gyniatrics answered 22/4, 2015 at 0:43 Comment(2)
Have you looked into pyext? grrrr.org/research/software/pyLaryngeal
Running both at the same time and using socket messages to communicate might be an option. See How to send messages from Pure Data to Python? and Pure Data on Mac OS X - how to send messages?Propitiatory
L
3

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

Laryngeal answered 23/4, 2015 at 11:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.