MCPcopy Create free account
hub / github.com/christophhart/HISE / updateValue

Method updateValue

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:985–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985void 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
1004bool ScriptModulationMatrix::ModulatorTargetData::isBipolarFreqMod(GlobalModulator* gm) const
1005{

Callers 5

sendValueMethod · 0.45
getModulationDataMethod · 0.45
updateConnectionDataMethod · 0.45
updateIntensityMethod · 0.45
updateValueModeMethod · 0.45

Calls 8

jlimitFunction · 0.85
getMethod · 0.45
getModeMethod · 0.45
setAttributeMethod · 0.45
getObjectMethod · 0.45
convertFrom0to1Method · 0.45
sendRepaintMessageMethod · 0.45

Tested by

no test coverage detected