| 983 | } |
| 984 | |
| 985 | void ScriptModulationMatrix::ModulatorTargetData::updateValue() |
| 986 | { |
| 987 | if(componentMod != nullptr) |
| 988 | { |
| 989 | auto mv = componentValue; |
| 990 | |
| 991 | auto mod = dynamic_cast<Modulation*>(componentMod.get()); |
| 992 | |
| 993 | if(mod->getMode() == Modulation::Mode::GainMode) |
| 994 | mv = 1.0f - mv; |
| 995 | |
| 996 | mod->setIntensityFromSlider(mv); |
| 997 | } |
| 998 | else if(targetMode == TargetMode::FrequencyMode) |
| 999 | { |
| 1000 | processor->setAttribute(PolyFilterEffect::Parameters::Frequency, componentValue, sendNotification); |
| 1001 | } |
| 1002 | } |
| 1003 | |
| 1004 | bool ScriptModulationMatrix::ModulatorTargetData::isBipolarFreqMod(GlobalModulator* gm) const |
| 1005 | { |
no test coverage detected