Fixed format string for C output for instrument command[C

pull/26/head
fourstix 1 month ago
parent 0a51fe9a89
commit 6bc2d2316e
  1. 2
      miditones.c
  2. BIN
      miditones.exe

@ -1097,7 +1097,7 @@ void remove_queue_entry(int ndx) { // remove the oldest queue entry
fprintf(outfile, "%3d", tg->note.instrument); fprintf(outfile, "%3d", tg->note.instrument);
outfile_items(1); } outfile_items(1); }
else { else {
fprintf(outfile, "$%02X,%d, ", CMD_INSTRUMENT | tgnum, tg->note.instrument); fprintf(outfile, "0x%02X,%d, ", CMD_INSTRUMENT | tgnum, tg->note.instrument);
outfile_items(2); } } } outfile_items(2); } } }
if (loggen) fprintf(logfile, " play tgen %d %s\n", tgnum, describe(&q->note)); if (loggen) fprintf(logfile, " play tgen %d %s\n", tgnum, describe(&q->note));
tg->playing = true; tg->playing = true;

Binary file not shown.
Loading…
Cancel
Save