From bd52fd0364be0875366f94e9cade37223f26bbc0 Mon Sep 17 00:00:00 2001 From: Johan Berglund Date: Fri, 26 Feb 2021 10:21:53 +0100 Subject: [PATCH] Small fix for CV LFO vibrato. --- NuEVI/NuEVI.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuEVI/NuEVI.ino b/NuEVI/NuEVI.ino index c0899e6..6ad99e5 100644 --- a/NuEVI/NuEVI.ino +++ b/NuEVI/NuEVI.ino @@ -1456,7 +1456,7 @@ void loop() { cvPitch += map(pitchBend,0,16383,-84,84); if (cvVibRate){ int timeDivider = timeDividerList[cvVibRate]; - int cvVib = map(((waveformsTable[map(currentTime%timeDivider, 0, timeDivider, 0, maxSamplesNum)] - 2047) * exSensorIndicator), -259968,259969,-11,11); + int cvVib = map(((waveformsTable[map(currentTime%timeDivider, 0, timeDivider, 0, maxSamplesNum-1)] - 2047) * exSensorIndicator), -259968,259969,-11,11); cvPitch += cvVib; } int cvPitchTuned = cvTune-100+map(cvPitch,0,4032,0,4032+cvScale-100);