From 501cb9e7b60928f2c854655d56c7d388412fc223 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 19 Jan 2022 16:45:59 +0000 Subject: [PATCH] SMall fix for protamento. --- src/Dexed.ttl | 2 +- src/dexed.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dexed.ttl b/src/Dexed.ttl index b274235..e69d244 100644 --- a/src/Dexed.ttl +++ b/src/Dexed.ttl @@ -2409,7 +2409,7 @@ The original engine comes from MSFA (music synthesizer for android) which is bas a lv2:InputPort, lv2:ControlPort ; lv2:index 171 ; lv2:symbol "portamento_gliss" ; - lv2:name "Portamento Mode" ; + lv2:name "Portamento Glissando" ; lv2:default 0 ; lv2:minimum 0 ; lv2:maximum 1 ; diff --git a/src/dexed.cpp b/src/dexed.cpp index 4236e45..1418379 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -761,7 +761,7 @@ void Dexed::setPortamentoMode(uint8_t portamento_mode, uint8_t portamento_glissa controllers.portamento_cc = portamento_time; controllers.portamento_enable_cc = portamento_mode > 63; - if (portamento_time > 0) + if (portamento_mode > 63 && portamento_time > 0) controllers.portamento_enable_cc = true; else controllers.portamento_enable_cc = false;