commit 5895c17f8579d3e3da4566e4e9bfc416e3ab52dc
parent 26fa2a8ecaedcb47e02ae26bf8ab4f02b6861099
Author: Hans Petter Selasky <hps@selasky.org>
Date: Sat, 4 Apr 2020 11:37:40 +0200
Keep the aftertouch alive until note off.
Map zero velocity to one.
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/Misc/Part.cpp b/src/Misc/Part.cpp
@@ -609,6 +609,13 @@ void Part::PolyphonicAftertouch(note_t note,
if(!Pnoteon || !inRange(note, Pminkey, Pmaxkey) || Pdrummode)
return;
+ /*
+ * Don't allow the velocity to reach zero.
+ * Keep it alive until note off.
+ */
+ if(velocity == 0)
+ velocity = 1;
+
// MonoMem stuff:
if(!Ppolymode) // if Poly is off
monomem[note].velocity = velocity; // Store this note's velocity.