banged my head against the wall for a bit here as the formatting for receiving mesages in touchOSC is very specfic, it works fine with the OSCout CHOP but the DAT took some time…
so figured id share what i found if anyone runs into this issue.
the format is:
osc_out.sendOSC(address, values,
useNonStandardTypes=True,
use64BitPrecision=False)
and example on a chop execute:
def onValueChange(channel, sampleIndex, val, prev):
osc_out = op('oscout4')
address = '/Rate'
string_value = val
values = [string_value]
osc_out.sendOSC(address, values,
useNonStandardTypes=True,
use64BitPrecision=False)
return
an example on a datexecut:
def onTableChange(dat):
osc_out = op('oscout4')
dat = op('select17')
address = '/Rate'
string_value = dat[0,0].val
values = [string_value]
osc_out.sendOSC(address, values,
useNonStandardTypes=True,
use64BitPrecision=False)
print(f'Sent OSC:\nAddress: {address}\nValue: {values[0]}')
hope this helps someone