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

Method getModulator

hi_scripting/scripting/api/ScriptingApi.cpp:5753–5777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5751}
5752
5753ScriptingObjects::ScriptingModulator *ScriptingApi::Synth::getModulator(const String &name)
5754{
5755 if(getScriptProcessor()->objectsCanBeCreated())
5756 {
5757 Processor::Iterator<Modulator> it(owner);
5758
5759 Modulator *m;
5760
5761 while((m = it.getNextProcessor()) != 0)
5762 {
5763 if(m->getId() == name)
5764 {
5765 return new ScriptingObjects::ScriptingModulator(getScriptProcessor(), m);
5766 }
5767 }
5768
5769 reportScriptError(name + " was not found. ");
5770 RETURN_IF_NO_THROW(new ScriptingObjects::ScriptingModulator(getScriptProcessor(), nullptr))
5771 }
5772 else
5773 {
5774 reportIllegalCall("getModulator()", "onInit");
5775 RETURN_IF_NO_THROW(new ScriptingObjects::ScriptingModulator(getScriptProcessor(), nullptr))
5776 }
5777}
5778
5779
5780ScriptingObjects::ScriptingMidiProcessor *ScriptingApi::Synth::getMidiProcessor(const String &name)

Callers 3

addGlobalModulatorMethod · 0.45
removeModulatorMethod · 0.45

Calls 3

objectsCanBeCreatedMethod · 0.80
getNextProcessorMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected