From 9350d1f02e6aa484f067ec847e884faa160229e1 Mon Sep 17 00:00:00 2001 From: Takeshi Yokemura Date: Sat, 1 May 2021 21:57:18 +0900 Subject: [PATCH] Initial bend amount wasn't reflected to a starting note --- Source/TonalVoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TonalVoice.cpp b/Source/TonalVoice.cpp index fbae694..f0471bc 100644 --- a/Source/TonalVoice.cpp +++ b/Source/TonalVoice.cpp @@ -22,7 +22,7 @@ void TonalVoice::startNote (int midiNoteNumber, float velocity, SynthesiserSound { BaseVoice::startNote (midiNoteNumber, velocity, 0, currentPitchBendPosition); - currentBendAmount = 0; + currentBendAmount = * (settingRefs->bendRange) * ((double) (currentPitchBendPosition - 8192)) / 8192.0; currentPitchSequenceFrame = 0; vibratoCount = 0;