Hello, I have this OSC message which is send to SC and I can map these data with an OSC Function that I have made and I want to do the same in Tidal. While I am not very familiar with the implementation of OSC functions in Tidal, I was wondering if anyone can help with parsing this OSC message as a pattern, the incoming OSC messages come as this below:
{
address: '/lick',
args: [
'943txiiKsnC0gLmoAAAD',
'{\n' +
' "0": "166.00",\n' +
' "1": "183.00",\n' +
' "2": "149.00",\n' +
' "3": "149.00",\n' +
' "4": "166.00",\n' +
' "5": "183.00",\n' +
' "6": "166.00",\n' +
' "7": "183.00"\n' +
'}'
]
}
Basically, what I need is to ignore the other parts of the message including the strings and spoof the values for using as patterns ignoring the keys ("0", "1" etc.).
' "0": "166.00",\n' +
' "1": "183.00",\n' +
' "2": "149.00",\n' +
' "3": "149.00",\n' +
' "4": "166.00",\n' +
' "5": "183.00",\n' +
' "6": "166.00",\n' +
' "7": "183.00"\n' +
I couldn't find more info on how to make function for receiving OSC rather than the sending functions in the link of OSC support here (OSC | Tidal Cycles). Obviously and as expected this will through this error in Tidal post window ->
Unhandled OSC: Message {messageAddress = "/lick", messageDatum = [AsciiString {d_ascii_string = "943txiiKsnC0gLmoAAAD"},AsciiString {d_ascii_string = "{\n "0": "166.00",\n "1": "183.00",\n "2": "149.00",\n "3": "149.00",\n "4": "166.00",\n "5": "183.00",\n "6": "166.00",\n "7": "183.00"\n}"}]}