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

Method getAllEffects

hi_scripting/scripting/api/ScriptingApi.cpp:5920–5944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5918
5919
5920var 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
5946ScriptingObjects::ScriptingAudioSampleProcessor * ScriptingApi::Synth::getAudioSampleProcessor(const String &name)
5947{

Callers

nothing calls this directly

Calls 5

varFunction · 0.85
objectsCanBeCreatedMethod · 0.80
getNextProcessorMethod · 0.80
getIdMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected