[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] raw OSC message format



what's the correct format for sending raw OSC packets over UDP? i'm writing a little C program for an AVR-based thingie, and i thought that -- according to the OSC spec -- a string like this:

"/s_new\0\0,si\0test\0\0\0\0100\0"

would be equivalent to the following in sclang:

s.sendMsg("/s_new", "test", 100)

but i get a SynthDef not found error (and "test" does exist) and this as the OSC dump:

[ "/s_new", "test", 4784238, !unknown tag '?' 0x00 ! ]
size 25
0 2f 73 5f 6e 65 77 00 00 2c 73 69 00 74 65 73 74 |/ s_new..,si.test|
  16   00 00 00 08  30 00 00 00  00                         |....0....|

i'm obviously not trying to do anything elegant here -- i just want to hack something quick and dirty. any tips appreciated...