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

Method getDspNetworkReference

hi_scripting/scripting/api/ScriptingApi.cpp:2418–2436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2416}
2417
2418var ScriptingApi::Engine::getDspNetworkReference(String processorId, String id)
2419{
2420 Processor::Iterator<scriptnode::DspNetwork::Holder> iter(getScriptProcessor()->getMainController_()->getMainSynthChain());
2421
2422 while (auto h = iter.getNextProcessor())
2423 {
2424 if (dynamic_cast<Processor*>(h)->getId() == processorId)
2425 {
2426 if (h->getIdList().contains(id))
2427 {
2428 return var(h->getOrCreate(id));
2429 }
2430 else
2431 reportScriptError("Can't find DSP network with given ID");
2432 }
2433 }
2434
2435 return var();
2436}
2437
2438juce::var ScriptingApi::Engine::getGlobalRoutingManager()
2439{

Callers

nothing calls this directly

Calls 8

varFunction · 0.85
getMainController_Method · 0.80
getNextProcessorMethod · 0.80
getMainSynthChainMethod · 0.45
getIdMethod · 0.45
containsMethod · 0.45
getIdListMethod · 0.45
getOrCreateMethod · 0.45

Tested by

no test coverage detected