commit b8deba64422d2913517e700b4335830ef1c3f3cf
parent 9eaf05283d4403c4b3a607edbffb5943df486a35
Author: Daniel Sheeler <[email protected]>
Date: Fri, 9 Mar 2018 20:35:01 -0600
Rolling back a bug in last commit.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Synth/ADnote.cpp b/src/Synth/ADnote.cpp
@@ -669,7 +669,6 @@ void ADnote::legatonote(LegatoParams lpars)
* VelF(
velocity,
pars.GlobalPar.PAmpVelocityScaleFunction); //velocity sensing
- globaloldamplitude = globalnewamplitude;
globalnewamplitude = NoteGlobalPar.Volume
* NoteGlobalPar.AmpEnvelope->envout_dB()
* NoteGlobalPar.AmpLfo->amplfoout();
diff --git a/src/Synth/SUBnote.cpp b/src/Synth/SUBnote.cpp
@@ -190,6 +190,8 @@ void SUBnote::setup(float freq,
if(GlobalFilter)
GlobalFilter->updateNoteFreq(basefreq);
}
+
+ oldamplitude = newamplitude;
}
SynthNote *SUBnote::cloneLegato(void)
@@ -477,7 +479,6 @@ void SUBnote::computecurrentparameters()
oldbandwidth = ctl.bandwidth.data;
oldpitchwheel = ctl.pitchwheel.data;
}
- oldamplitude = newamplitude;
newamplitude = volume * AmpEnvelope->envout_dB() * 2.0f;
//Filter