Thread: Midi <-> OSC
View Single Post
Old 11-19-2017, 01:06 AM   #96
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 7,868
Default

Quote:
Originally Posted by fundorin View Post
... "\xF0\x00\x20\x29\x03\x03\x12\x00\x02\x00\x01\x01\ xF7"....
this is the symbol that I'm getting:
The SysEX string you receive does not contain a single printable character. So you need to handle it's characters (bytes) in a binary way:

e.g. (for single bytes containing a value 0..127, as defined here -> http://www.gweep.net/~prefect/eng/re.../midispec.html ):

i = 0;
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 ).
-Michael

Last edited by mschnell; 11-19-2017 at 02:51 AM.
mschnell is online now   Reply With Quote