Browse Source

Fix get_parameters_dump for combinations and arpeggios

develop
Damien Goutte-Gattat 8 years ago
parent
commit
a0e33251ba
  1. 9
      src/microx.c

9
src/microx.c

@ -285,6 +285,13 @@ get_dump_parameters(enum kmx_microx_data_type type,
buffer[0] = 0x20 + (bank - 'A');
buffer[1] = program;
*size = MICROX_COMBINATION_SIZE;
if ( load ) {
buffer[2] = buffer[1];
buffer[1] = buffer[0];
buffer[0] = 0;
}
break;
case MULTI_DATA:
@ -306,7 +313,7 @@ get_dump_parameters(enum kmx_microx_data_type type,
case ARPEGGIO_DATA:
if ( sscanf(what, "%03hhd", &program) != 1 || program > 250 )
return KMX_INVALID_QUERY;
buffer[0] = 1;
buffer[0] = 0x40;
buffer[1] = program >> 7;
buffer[2] = program & 0x7F;
*size = MICROX_ARPEGGIO_SIZE;

Loading…
Cancel
Save