From 23b11b1e14cd10dd9c33191a27362d863e31e82a Mon Sep 17 00:00:00 2001 From: arsamus Date: Thu, 5 May 2022 15:39:28 -0300 Subject: [PATCH] Update minidexed.cpp --- src/minidexed.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 95f8998..6587242 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -477,8 +477,9 @@ void CMiniDexed::SetPortaMode (uint8_t nValue, unsigned nTG) m_nPortamentoMode[nTG] = nValue; assert (m_pTG[nTG]); - m_pTG[nTG]->setPortamentoMode (nValue); - + // m_pTG[nTG]->setPortamentoMode (nValue); // uncoment and comment following in news version of dexed + m_pTG[nTG]->setPortamentoMode (nValue, m_nPortamentoGlissando[nTG], m_nPortamentoTime[nTG]); // Compile error due to new implementation in Dexed, uncoment above and coment this + m_UI.ParameterChanged (); } @@ -490,8 +491,9 @@ void CMiniDexed::SetPortaGlissando (uint8_t nValue, unsigned nTG) m_nPortamentoGlissando[nTG] = nValue; assert (m_pTG[nTG]); - m_pTG[nTG]->setPortamentoGlissando (nValue); - + // m_pTG[nTG]->setPortamentoGlissando (nValue); // uncoment and comment following in news version of dexed + m_pTG[nTG]->setPortamentoMode (m_nPortamentoMode[nTG], nValue, m_nPortamentoTime[nTG]); // Compile error due to new implementation in Dexed, uncoment above and coment this + m_UI.ParameterChanged (); } @@ -503,8 +505,9 @@ void CMiniDexed::SetPortaTime (uint8_t nValue, unsigned nTG) m_nPortamentoTime[nTG] = nValue; assert (m_pTG[nTG]); - m_pTG[nTG]->setPortamentoTime (nValue); - + // m_pTG[nTG]->setPortamentoTime (nValue); // uncoment and comment following in news version of dexed + m_pTG[nTG]->setPortamentoMode (m_nPortamentoMode[nTG], m_nPortamentoGlissando[nTG], nValue); // Compile error due to new implementation in Dexed, uncoment above and coment this + m_UI.ParameterChanged (); }