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);