Output
out
Send data to a Pd object outlet.
Parameters:
outlet: 0‑based outlet indextype:pd.FLOAT,pd.SYMBOL,pd.LIST, orpd.PYOBJECTvalue: Data to output
Example (converter):
class topd(pd.NewObject):
name = "py.2pd"
def __init__(self, _):
self.inlets = 1
self.outlets = 1
def in_0_pyobj(self, args):
if type(args) in (float, int):
self.out(0, pd.FLOAT, args)
elif type(args) == str:
self.out(0, pd.SYMBOL, args)
elif type(args) == list:
self.out(0, pd.LIST, args)
Example (PYOBJECT output):
class topy(pd.NewObject):
name = "py.2py"
def __init__(self, _):
self.inlets = 1
self.outlets = 1
def in_0_list(self, args):
self.out(0, pd.PYOBJECT, args)
def in_0_float(self, f):
self.out(0, pd.PYOBJECT, f)