greetings, i am thinking the following but i am not sure if this is a) actually the correct way to detect truncated sysex and if so b) is always correct:
read event; for (each byte in the event) { ... if (byte == MIDI_SYSEX) { receiving_sysex = true; position = 0; ... } if (receiving_sysex) { // ignore truncated sysex if (position > 0 && byte >= 0xF0 && byte != 0xF7) { receiving_sysex = false; break; // assume other bytes to be garbage (correct?) } ... ++position; ... } ... } thanks a lot Jan _______________________________________________ media_api mailing list media_api@create.ucsb.edu http://lists.create.ucsb.edu/mailman/listinfo/media_api