From 898043def8f4e8fb1febb2d58c2e49a3b2f9abb5 Mon Sep 17 00:00:00 2001 From: Albert Graef Date: Tue, 28 Aug 2018 08:51:29 +0200 Subject: [PATCH] Bugfix: mod translations should also modify the data byte of PC messages. --- midizap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/midizap.c b/midizap.c index d187288..e8a25be 100644 --- a/midizap.c +++ b/midizap.c @@ -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: