Skip to content

Commit

Permalink
Minor fix to para eq param count
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge committed Dec 31, 2024
1 parent b0900ed commit 15dfa7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Software/GuitarPedal/Effect-Modules/peq_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cycfi::q::peaking filterHighs = {0, defaultHighFreq, 48000, qHigh[1]};

static const char *s_qBinNames[3] = {"Narrow", "Medium", "Wide"};

static constexpr uint8_t s_paramCount = 12;
static constexpr uint8_t s_paramCount = 9;
static const ParameterMetaData s_metaData[s_paramCount] = {{
name : "Low Freq",
valueType : ParameterValueType::Float,
Expand Down
3 changes: 3 additions & 0 deletions Software/GuitarPedal/UI/guitar_pedal_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,12 @@ void GuitarPedalUI::InitEffectUiPages() {
// Initialize the param value stores to a known state.
for (int i = 0; i < m_numActiveEffectSettingsItems; ++i) {
m_activeEffectSettingIntValues[i] = NULL;
m_activeEffectSettingFloatValues[i] = NULL;
m_activeEffectSettingStringValues[i] = NULL;
m_activeEffectSettingBoolValues[i] = false;
}

// Add 1 additional item on top of m_numActiveEffectSettingsItems for exiting
m_activeEffectSettingsMenuItems = new AbstractMenu::ItemConfig[m_numActiveEffectSettingsItems + 1];

for (int i = 0; i < m_numActiveEffectSettingsItems; i++) {
Expand Down Expand Up @@ -259,6 +261,7 @@ void GuitarPedalUI::InitEffectUiPages() {
}
}

// Setup the final, exit item for the menu
m_activeEffectSettingsMenuItems[m_numActiveEffectSettingsItems].type = AbstractMenu::ItemType::closeMenuItem;
m_activeEffectSettingsMenuItems[m_numActiveEffectSettingsItems].text = "Back";

Expand Down

0 comments on commit 15dfa7a

Please sign in to comment.