| 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 | } |
nothing calls this directly
no test coverage detected