charlesneimog / py4pd

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.
https://charlesneimog.github.io/py4pd/
GNU General Public License v3.0
14 stars 2 forks source link

Error when using Nested py4pd Objects to Output Data in Python Functions #21

Closed charlesneimog closed 1 year ago

charlesneimog commented 1 year ago

When I use pd.out inside and Python function:

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).

Example:

example