| 2970 | } |
| 2971 | |
| 2972 | var ScriptingObjects::ScriptingModulator::addModulator(var chainIndex, var typeName, var modName) |
| 2973 | { |
| 2974 | if (checkValidObject()) |
| 2975 | { |
| 2976 | ModulatorChain *c = dynamic_cast<ModulatorChain*>(mod->getChildProcessor(chainIndex)); |
| 2977 | |
| 2978 | if (c == nullptr) |
| 2979 | reportScriptError("Modulator Chain with index " + chainIndex.toString() + " does not exist"); |
| 2980 | |
| 2981 | Processor* p = moduleHandler.addModule(c, typeName, modName, -1); |
| 2982 | |
| 2983 | if (p != nullptr) |
| 2984 | { |
| 2985 | auto newMod = new ScriptingObjects::ScriptingModulator(getScriptProcessor(), dynamic_cast<Modulator*>(p)); |
| 2986 | return var(newMod); |
| 2987 | } |
| 2988 | |
| 2989 | } |
| 2990 | |
| 2991 | return var(); |
| 2992 | } |
| 2993 | |
| 2994 | var ScriptingObjects::ScriptingModulator::getModulatorChain(var chainIndex) |
| 2995 | { |
nothing calls this directly
no test coverage detected