Browse Source

Fix microX to MIDI data conversion

master
Damien Goutte-Gattat 9 years ago
parent
commit
85fd58f880
  1. 2
      src/microx.c

2
src/microx.c

@ -397,7 +397,7 @@ kmx_microx_load(midi_io_t *midi,
* to MIDI format. See comment in kmx_micro_dump above. */
if ( m % 7 == 0 )
buffer[n++] = 0;
buffer[n - (m % 7) - 1] += (data[m] & 0x80) << (m % 7);
buffer[n - (m % 7) - 1] += (data[m] & 0x80) >> (7 - m % 7);
buffer[n++] = data[m++] & 0x7F;
if ( n == sizeof(buffer) ) {

Loading…
Cancel
Save