diff --git a/midizap.c b/midizap.c index a373105..2594c5d 100644 --- a/midizap.c +++ b/midizap.c @@ -1428,10 +1428,10 @@ handle_event(uint8_t *msg, uint8_t portno, int depth, int recursive) } else if (msg[2] > 64) { int step = get_cc_step(tr, portno, chan, msg[1], -1); if (step) { - int d = (msg[2]-64)/step; + uint8_t d = (msg[2]-128)/step; while (d) { send_strokes(tr, portno, status, chan, msg[1], 0, 0, -1, depth); - d--; + d++; } } }