Bugfix: mod translations should also modify the data byte of PC messages.

master
Albert Graef 2018-08-28 08:51:29 +02:00
parent 397580fa81
commit 898043def8
1 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,11 @@ send_midi(uint8_t portno, int status, int data,
break;
}
case 0xc0:
if (mod) {
int d = msg[1] + datavals(val/mod, mod_step, mod_steps, mod_n_steps);
if (d > 127 || d < 0) return;
msg[1] = d;
}
// just send the message
break;
default: