From 8ca21774fba2777896711dba18de6004d7ec3d3a Mon Sep 17 00:00:00 2001 From: jnonis Date: Wed, 26 Jun 2024 04:12:58 +0000 Subject: [PATCH] Fix for Insert FX paramters ui --- src/minidexed.cpp | 4 ++-- src/uimenu.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index b69ffa6..b61fb66 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -1012,9 +1012,9 @@ void CMiniDexed::SetTGFXParameter (unsigned Parameter, int nValue, unsigned nTG, int CMiniDexed::GetTGFXParameter (unsigned Parameter, unsigned nTG, unsigned nFXType) { assert (nTG < CConfig::ToneGenerators); - assert (m_InsertFX[nTG]->getId() == nFXType); + assert (m_InsertFX[nTG]->getId() == nFXType); - return m_InsertFX[nTG]->getParameter(Parameter);; + return m_InsertFX[nTG]->getParameter(Parameter); } void CMiniDexed::SetVoiceParameter (uint8_t uchOffset, uint8_t uchValue, unsigned nOP, unsigned nTG) diff --git a/src/uimenu.cpp b/src/uimenu.cpp index f39d7e8..e9346f3 100644 --- a/src/uimenu.cpp +++ b/src/uimenu.cpp @@ -904,7 +904,7 @@ void CUIMenu::EditInsertFX (CUIMenu *pUIMenu, TMenuEvent Event) void CUIMenu::EditTGFXParameter (CUIMenu *pUIMenu, TMenuEvent Event) { // Get TG - unsigned nTG = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-2]; + unsigned nTG = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-3]; // Get FX type int nFXType = pUIMenu->m_pMiniDexed->GetTGParameter(CMiniDexed::TGParameterInsertFXType, nTG);