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

Method getTypeIndex

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:968–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968int ScriptModulationMatrix::ModulatorTargetData::getTypeIndex(GlobalModulator* gm) const
969{
970 auto asMod = dynamic_cast<Modulator*>(gm);
971
972 for (int i = 0; i < 3; i++)
973 {
974 if (modulators[i].contains(asMod))
975 return i;
976
977 if (targetMode == TargetMode::FrequencyMode && freqAddMods[i].contains(asMod))
978 return i;
979 }
980
981 jassertfalse;
982 return -1;
983}
984
985void ScriptModulationMatrix::ModulatorTargetData::updateValue()
986{

Callers 1

updateValueModeMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected