automata/osc-web

Hi

Opened this issue · 3 comments

Trying to pass arguments to Qlab but having trouble with spaces in messages.

The OSC message from the WEBsite:

socket.emit('message', '/cue/2/fadeAndStopOthers 3')

Is passed on as '/cue/2/fadeAndStopOthers' '3'.

I guess it is connected to:
var toSend = obj.split(' ');

Any way to pass OSC messages with spaces?

I'm afraid "Spaces are not permitted in OSC addresses"
"3" is an OSC arg.

I dont understand. They are used a lot in qlabs osc documentation: https://qlab.app/docs/v4/scripting/osc-dictionary-v4/#cuecue_numberfadeandstopothers-number

You see a space between args, but under the hood, when computers exchange OSC messages they follow :
http://opensoundcontrol.org/spec-1_0
OSC compliant software process address and args according to the specification where everything is classified, ordered and use fixed number of Bytes