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

Method clear

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:1091–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091void ScriptModulationMatrix::ModulatorTargetData::clear()
1092{
1093 forEach(nullptr, [](Modulator* sm, ModulatorTargetData& d, GlobalModulator* gm)
1094 {
1095 gm->disconnect();
1096 auto mod = dynamic_cast<Modulation*>(gm);
1097 mod->setIntensity(mod->getInitialValue());
1098
1099 return false;
1100 });
1101
1102 dynamic_cast<ScriptComponent*>(sc.getObject())->sendRepaintMessage();
1103}
1104
1105juce::var ScriptModulationMatrix::ModulatorTargetData::getIntensitySliderData(String sourceId) const
1106{

Callers 1

Calls 6

getInitialValueMethod · 0.80
forEachFunction · 0.50
disconnectMethod · 0.45
setIntensityMethod · 0.45
sendRepaintMessageMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected