Small fix for CV LFO vibrato.

This commit is contained in:
Johan Berglund 2021-02-26 10:21:53 +01:00
parent 27071c44bd
commit bd52fd0364

View file

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