| 3834 | }; |
| 3835 | |
| 3836 | ScriptingObjects::ScriptingSynth::ScriptingSynth(ProcessorWithScriptingContent *p, ModulatorSynth *synth_) : |
| 3837 | ConstScriptingObject(p, synth_ != nullptr ? synth_->getNumParameters() + 1 : 1), |
| 3838 | synth(synth_), |
| 3839 | moduleHandler(synth_, dynamic_cast<JavascriptProcessor*>(p)) |
| 3840 | { |
| 3841 | if (synth != nullptr) |
| 3842 | { |
| 3843 | setName(synth->getId()); |
| 3844 | |
| 3845 | addScriptParameters(this, synth.get()); |
| 3846 | |
| 3847 | for (int i = 0; i < synth->getNumParameters(); i++) |
| 3848 | { |
| 3849 | addConstant(synth->getIdentifierForParameterIndex(i).toString(), var(i)); |
| 3850 | } |
| 3851 | } |
| 3852 | else |
| 3853 | { |
| 3854 | setName("Invalid Effect"); |
| 3855 | } |
| 3856 | |
| 3857 | ADD_API_METHOD_0(getId); |
| 3858 | ADD_API_METHOD_2(setAttribute); |
| 3859 | ADD_API_METHOD_1(getAttribute); |
| 3860 | ADD_API_METHOD_1(getAttributeId); |
| 3861 | ADD_API_METHOD_1(getAttributeIndex); |
| 3862 | ADD_API_METHOD_1(setBypassed); |
| 3863 | ADD_API_METHOD_0(isBypassed); |
| 3864 | ADD_API_METHOD_1(getChildSynthByIndex); |
| 3865 | ADD_API_METHOD_1(getCurrentLevel); |
| 3866 | ADD_API_METHOD_0(exportState); |
| 3867 | ADD_API_METHOD_1(restoreState); |
| 3868 | ADD_API_METHOD_0(getNumAttributes); |
| 3869 | ADD_API_METHOD_3(addModulator); |
| 3870 | ADD_API_METHOD_1(getModulatorChain); |
| 3871 | ADD_API_METHOD_3(addGlobalModulator); |
| 3872 | ADD_API_METHOD_3(addStaticGlobalModulator); |
| 3873 | ADD_API_METHOD_0(asSampler); |
| 3874 | ADD_API_METHOD_0(getRoutingMatrix); |
| 3875 | }; |
| 3876 | |
| 3877 | |
| 3878 | Component* ScriptingObjects::ScriptingSynth::createPopupComponent(const MouseEvent& e, Component* t) |
nothing calls this directly
no test coverage detected