From 47fc1b36da5ec6128edd94b2190006545121d905 Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 21 Apr 2022 00:15:33 +0200 Subject: [PATCH] Add implementation --- src/minidexed.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 1361aa3..68908bf 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -521,6 +521,24 @@ void CMiniDexed::setSustain(bool sustain, unsigned nTG) m_pTG[nTG]->setSustain (sustain); } +void CMiniDexed::panic(uint8_t value, unsigned nTG) +{ + assert (nTG < CConfig::ToneGenerators); + assert (m_pTG[nTG]); + if (value == 0) { + m_pTG[nTG]->panic (); + } +} + +void CMiniDexed::notesOff(uint8_t value, unsigned nTG) +{ + assert (nTG < CConfig::ToneGenerators); + assert (m_pTG[nTG]); + if (value == 0) { + m_pTG[nTG]->notesOff (); + } +} + void CMiniDexed::setModWheel (uint8_t value, unsigned nTG) { assert (nTG < CConfig::ToneGenerators);