automata / osc-web

Open Sound Control Web Bridge
MIT License
320 stars 50 forks source link

Hi #19

Open petteraha opened 4 years ago

petteraha commented 4 years ago

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?

tmpbci commented 4 years ago

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

petteraha commented 4 years ago

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

tmpbci commented 4 years ago

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