zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 5d80ba8e3b775dce3f368302bb764b72822e6e14
parent bc4e1cf2993b5807c539e255841ab57a3a67cb38
Author: Hans Petter Selasky <hps@selasky.org>
Date:   Fri,  3 Apr 2020 01:36:02 +0200

Correctly apply velocity check.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>

Diffstat:
Msrc/Synth/ADnote.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Synth/ADnote.cpp b/src/Synth/ADnote.cpp @@ -539,9 +539,9 @@ void ADnote::legatonote(LegatoParams lpars) initial_seed = lpars.seed; current_prng_state = lpars.seed; + velocity = lpars.velocity; if(velocity > 1.0f) velocity = 1.0f; - velocity = lpars.velocity; NoteGlobalPar.Detune = getdetune(pars.GlobalPar.PDetuneType, pars.GlobalPar.PCoarseDetune,