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

Method getModulatorChain

hi_scripting/scripting/api/ScriptingApiObjects.cpp:2994–3011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2992}
2993
2994var ScriptingObjects::ScriptingModulator::getModulatorChain(var chainIndex)
2995{
2996 if (checkValidObject())
2997 {
2998 auto c = dynamic_cast<Modulator*>(mod->getChildProcessor(chainIndex));
2999
3000 if (c == nullptr)
3001 reportScriptError("Modulator Chain with index " + chainIndex.toString() + " does not exist");
3002
3003 auto modChain = new ScriptingModulator(getScriptProcessor(), c);
3004
3005 return var(modChain);
3006 }
3007 else
3008 {
3009 return var();
3010 }
3011}
3012
3013var ScriptingObjects::ScriptingModulator::addGlobalModulator(var chainIndex, var globalMod, String modName)
3014{

Callers

nothing calls this directly

Calls 3

varFunction · 0.85
getChildProcessorMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected