| 2416 | } |
| 2417 | |
| 2418 | var 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 | |
| 2438 | juce::var ScriptingApi::Engine::getGlobalRoutingManager() |
| 2439 | { |
nothing calls this directly
no test coverage detected