| 5918 | |
| 5919 | |
| 5920 | var ScriptingApi::Synth::getAllEffects(String regex) |
| 5921 | { |
| 5922 | WARN_IF_AUDIO_THREAD(true, ScriptGuard::ObjectCreation); |
| 5923 | |
| 5924 | if(getScriptProcessor()->objectsCanBeCreated()) |
| 5925 | { |
| 5926 | Array<var> list; |
| 5927 | |
| 5928 | Processor::Iterator<EffectProcessor> it(owner); |
| 5929 | |
| 5930 | EffectProcessor *fx; |
| 5931 | |
| 5932 | while((fx = it.getNextProcessor()) != nullptr) |
| 5933 | { |
| 5934 | if (RegexFunctions::matchesWildcard(regex, fx->getId())) |
| 5935 | { |
| 5936 | list.add(new ScriptEffect(getScriptProcessor(), fx)); |
| 5937 | } |
| 5938 | } |
| 5939 | |
| 5940 | return var(list); |
| 5941 | } |
| 5942 | |
| 5943 | RETURN_IF_NO_THROW({}); |
| 5944 | } |
| 5945 | |
| 5946 | ScriptingObjects::ScriptingAudioSampleProcessor * ScriptingApi::Synth::getAudioSampleProcessor(const String &name) |
| 5947 | { |
nothing calls this directly
no test coverage detected