From 1d637d35356c57902fa387fbb87ea728d6deda01 Mon Sep 17 00:00:00 2001 From: Johan Berglund Date: Fri, 26 Feb 2021 10:31:50 +0100 Subject: [PATCH] Bug fix. CV portamento in combination with pitch bend would make the pitch bend range be all over the place. --- NuEVI/NuEVI.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NuEVI/NuEVI.ino b/NuEVI/NuEVI.ino index 6ad99e5..d92bc9e 100644 --- a/NuEVI/NuEVI.ino +++ b/NuEVI/NuEVI.ino @@ -1428,6 +1428,7 @@ void loop() { if(dacMode == DAC_MODE_PITCH) { // pitch CV from DAC and breath CV from PWM on pin 6, for filtering and scaling on separate board targetPitch = (fingeredNote-24)*42; + targetPitch += map(pitchBend,0,16383,-84,84); if (portIsOn){ if (targetPitch > cvPitch){ if (!cvPortaTuneCount) { @@ -1453,7 +1454,7 @@ void loop() { } else { cvPitch = targetPitch; } - cvPitch += map(pitchBend,0,16383,-84,84); + if (cvVibRate){ int timeDivider = timeDividerList[cvVibRate]; int cvVib = map(((waveformsTable[map(currentTime%timeDivider, 0, timeDivider, 0, maxSamplesNum-1)] - 2047) * exSensorIndicator), -259968,259969,-11,11);