py4pd allows write PureData objects using Python. The main goal is to allow easy IA, Scores, Graphics, and bring to Pd data types as array, np.arrays, list, dict, and others.
def example_pdout():
for x in range(2):
pd.out(x, symbol="myloop")
for x in range(2): # second loop
pd.out(x, symbol="myloop2")
return None
And connect with this function we have another python function, the second loop will output the data in the py4pd object that is called by pd.out (another py4pd object).
When I use
pd.out
inside and Python function:And connect with this function we have another python function, the second loop will output the data in the
py4pd
object that is called bypd.out
(another py4pd object).Example: