From 76779c9375def1f4398c123dffe441cecda42507 Mon Sep 17 00:00:00 2001 From: Teddy Ort Date: Thu, 26 Mar 2020 02:24:25 -0400 Subject: [PATCH] Correct volume percent mapping --- e-vent.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-vent.ino b/e-vent.ino index f7a9d4d..b9a7435 100644 --- a/e-vent.ino +++ b/e-vent.ino @@ -86,7 +86,7 @@ void readPots(){ Tex = period - Tin; Vin = Volume/Tin; // Velocity in clicks/s - displ.writeVolume(100 * Volume/VOL_MAX); + displ.writeVolume(map(Volume, VOL_MIN, VOL_MAX, 0, 100)); displ.writeBPM(bpm); displ.writeIEratio(ie); if(DEBUG){