Thread: Midi <-> OSC
View Single Post
Old 11-19-2017, 10:47 PM   #106
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,791
Default

Quote:
Originally Posted by mschnell View Post
x = str_getchar(oscstr, i, 'cu');
...
(In fact I don't know what type 'c' is supposed to do (-64..+64 ???) , as seemingly any SysEX needs to have bit 7 = 0. I also don't know if/how the types larger than one byte will strip off the bits 7 from the multiple bytes ).
Silly me:
Of course here str_getchar does not know that it works on SysEX data, but is just a general string function. So the working of the type attribute is obvious ('c' -> -128 ... +127).

Hence to extract somthing else then unsigned bytes from SysEX, dedicated user code is needed to be done, handling the always zero upper bits of the bytes.

-Michael

Last edited by mschnell; 11-20-2017 at 08:36 AM.
mschnell is offline   Reply With Quote