FxPage.cpp (890B)
1 #include "FxPage.h" 2 3 #include "VirusEditor.h" 4 5 #include "ParameterNames.h" 6 #include "VirusController.h" 7 8 namespace genericVirusUI 9 { 10 FxPage::FxPage(const VirusEditor& _editor) 11 { 12 const auto delayReverbMode = _editor.getController().getParameterIndexByName(virus::g_paramDelayReverbMode); 13 const auto p = _editor.getController().getParamValueObject(delayReverbMode, 0); 14 15 if(!p) 16 return; 17 18 const auto containerReverb = _editor.findComponent("ContainerReverb"); 19 const auto containerDelay = _editor.findComponent("ContainerDelay"); 20 21 m_conditionReverb.reset(new genericUI::ConditionByParameterValues(*containerReverb, p, 0, {2,3,4})); 22 m_conditionDelay.reset(new genericUI::ConditionByParameterValues(*containerDelay, p, 0, {0,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26})); 23 } 24 25 FxPage::~FxPage() 26 { 27 m_conditionReverb.reset(); 28 m_conditionDelay.reset(); 29 } 30 }