Thread: Midi <-> OSC
View Single Post
Old 12-22-2017, 01:05 PM   #137
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,687
Default

Sorry.

Seemingly English derived from Russian is than much different from English derived from German, that we are not able to communicate (I did have this impression already before). So maybe a native English speake might chime in and translate.

Anyway I'll give it another try:

>> midisend_str(midi_out, lcdRequest); // data request
>> printf("LCD: %s\n",hex2str(oscstr)); // should print the same as midi-ox does

This will not work.

After sending OSCII-Bot will not wait for a reply, and hence oscstr is evaluate before any data is attached to it.

You should go (untested):


in @midimsg, @timer or @oscmsg :

...
midisend_str(midi_out, lcdRequest); // data request
...


in @midimsg:

...
(msg1 & $xF0) == $xF0 ? ( // this is a SysEx
test_if_an_LCD_message_is_expected ? (
printf("LCD: %s\n",hex2str(oscstr)); // should print the same as midi-ox does
);
...
);
...




-Michael

Last edited by mschnell; 12-22-2017 at 01:10 PM.
mschnell is offline   Reply With Quote