From 8e59131be4256d6e9fce1ad4e8ff6e7a4916df3d Mon Sep 17 00:00:00 2001 From: arsamus Date: Fri, 8 Jul 2022 20:08:47 -0300 Subject: [PATCH] Update minidexed.cpp --- src/minidexed.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 8751dab..2cbbfb9 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -190,6 +190,10 @@ bool CMiniDexed::Initialize (void) m_pTG[i]->setPBController (2, 0); m_pTG[i]->setMWController (99, 1, 0); + m_pTG[i]->setFCController (99, 1, 0); + m_pTG[i]->setBCController (99, 1, 0); + m_pTG[i]->setATController (99, 1, 0); + tg_mixer->pan(i,mapfloat(m_nPan[i],0,127,0.0f,1.0f)); tg_mixer->gain(i,1.0f); reverb_send_mixer->pan(i,mapfloat(m_nPan[i],0,127,0.0f,1.0f)); @@ -580,6 +584,28 @@ void CMiniDexed::setModWheel (uint8_t value, unsigned nTG) m_pTG[nTG]->setModWheel (value); } + +void CMiniDexed::setFootController (uint8_t value, unsigned nTG) +{ + assert (nTG < CConfig::ToneGenerators); + assert (m_pTG[nTG]); + m_pTG[nTG]->setFootController (value); +} + +void CMiniDexed::setBreathController (uint8_t value, unsigned nTG) +{ + assert (nTG < CConfig::ToneGenerators); + assert (m_pTG[nTG]); + m_pTG[nTG]->setBreathController (value); +} + +void CMiniDexed::setAftertouch (uint8_t value, unsigned nTG) +{ + assert (nTG < CConfig::ToneGenerators); + assert (m_pTG[nTG]); + m_pTG[nTG]->setAftertouch (value); +} + void CMiniDexed::setPitchbend (int16_t value, unsigned nTG) { assert (nTG < CConfig::ToneGenerators);