SMall fix for protamento.

dev
Holger Wirtz 2 years ago
parent 894c038dcd
commit 501cb9e7b6
  1. 2
      src/Dexed.ttl
  2. 2
      src/dexed.cpp

@ -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 ;

@ -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;

Loading…
Cancel
Save