MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / parameterChanged

Method parameterChanged

source/zlp/chore_attach.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void ChoreAttach::parameterChanged(const juce::String& parameter_ID, const float value) {
31 if (parameter_ID == PFilterStructure::kID) {
32 controller_.setFilterStructure(static_cast<FilterStructure>(std::round(value)));
33 } else if (parameter_ID == POutputGain::kID) {
34 controller_.setMakeupGain(value);
35 } else if (parameter_ID == PStaticGain::kID) {
36 controller_.setSGCON(value > .5f);
37 } else if (parameter_ID == PAutoGain::kID) {
38 controller_.setAGCON(value > .5f);
39 } else if (parameter_ID == PPhaseFlip::kID) {
40 controller_.setPhaseFlipON(value > .5f);
41 } else if (parameter_ID == PLookahead::kID) {
42 controller_.setDelay(static_cast<double>(value) * 0.001);
43 }
44 }
45}

Callers

nothing calls this directly

Calls 6

setFilterStructureMethod · 0.80
setMakeupGainMethod · 0.80
setSGCONMethod · 0.80
setAGCONMethod · 0.80
setPhaseFlipONMethod · 0.80
setDelayMethod · 0.45

Tested by

no test coverage detected