diff --git a/src/deluge/gui/menu_item/filter/lpf_mode.h b/src/deluge/gui/menu_item/filter/lpf_mode.h index 438b830920..dda815678d 100644 --- a/src/deluge/gui/menu_item/filter/lpf_mode.h +++ b/src/deluge/gui/menu_item/filter/lpf_mode.h @@ -37,8 +37,6 @@ class LPFMode final : public Selection { l10n::getView(STRING_FOR_SVF_NOTCH), }; } - bool isRelevant(Sound* sound, int32_t whichThing) override { - return ((sound == nullptr) || sound->synthMode != ::SynthMode::FM); - } + bool isRelevant(Sound* sound, int32_t whichThing) override { return (true); } }; } // namespace deluge::gui::menu_item::filter diff --git a/src/deluge/gui/menu_item/patched_param/integer_non_fm.h b/src/deluge/gui/menu_item/patched_param/integer_non_fm.h index 733a96d882..4b2ea09951 100644 --- a/src/deluge/gui/menu_item/patched_param/integer_non_fm.h +++ b/src/deluge/gui/menu_item/patched_param/integer_non_fm.h @@ -22,6 +22,6 @@ namespace deluge::gui::menu_item::patched_param { class IntegerNonFM : public Integer { public: using Integer::Integer; - bool isRelevant(Sound* sound, int32_t whichThing) override { return (sound->synthMode != SynthMode::FM); } + bool isRelevant(Sound* sound, int32_t whichThing) override { return (true); } }; } // namespace deluge::gui::menu_item::patched_param diff --git a/src/deluge/gui/menu_item/submenu/filter.h b/src/deluge/gui/menu_item/submenu/filter.h index 4c61a91a02..77221e854b 100644 --- a/src/deluge/gui/menu_item/submenu/filter.h +++ b/src/deluge/gui/menu_item/submenu/filter.h @@ -22,7 +22,7 @@ namespace deluge::gui::menu_item::submenu { class Filter final : public Submenu { public: using Submenu::Submenu; - bool isRelevant(Sound* sound, int32_t whichThing) override { return (sound->synthMode != SynthMode::FM); } + bool isRelevant(Sound* sound, int32_t whichThing) override { return (true); } }; } // namespace deluge::gui::menu_item::submenu diff --git a/src/deluge/gui/ui/sound_editor.cpp b/src/deluge/gui/ui/sound_editor.cpp index b9eb48c407..be7c42dfde 100644 --- a/src/deluge/gui/ui/sound_editor.cpp +++ b/src/deluge/gui/ui/sound_editor.cpp @@ -650,7 +650,7 @@ ActionResult SoundEditor::horizontalEncoderAction(int32_t offset) { void SoundEditor::selectEncoderAction(int8_t offset) { - if (Buttons::isShiftButtonPressed()) { + if (Buttons::isButtonPressed(deluge::hid::button::SHIFT)) { offset = offset * 5; } diff --git a/src/deluge/processing/sound/sound.cpp b/src/deluge/processing/sound/sound.cpp index bd87e9c3be..9cc4048aa2 100644 --- a/src/deluge/processing/sound/sound.cpp +++ b/src/deluge/processing/sound/sound.cpp @@ -1304,14 +1304,14 @@ PatchCableAcceptance Sound::maySourcePatchToParam(PatchSource s, uint8_t p, Para case Param::Local::LPF_FREQ: case Param::Local::LPF_RESONANCE: if (synthMode == SynthMode::FM) { - return PatchCableAcceptance::DISALLOWED; + //return PatchCableAcceptance::DISALLOWED; } break; case Param::Local::HPF_FREQ: case Param::Local::HPF_RESONANCE: if (synthMode == SynthMode::FM) { - return PatchCableAcceptance::DISALLOWED; + //return PatchCableAcceptance::DISALLOWED; } break; @@ -2916,7 +2916,7 @@ bool Sound::anyNoteIsOn() { } bool Sound::hasFilters() { - return (getSynthMode() != SynthMode::FM); + return true; } void Sound::readParamsFromFile(ParamManagerForTimeline* paramManager, int32_t readAutomationUpToPos) {