Some handy helper functions that are using mainly the Iterator. More...
Static Public Member Functions | |
static const Processor * | findParentProcessor (const Processor *childProcessor, bool getParentSynth) |
Small helper function that returns the parent processor of the given child processor. More... | |
static Processor * | getFirstProcessorWithName (const Processor *rootProcessor, const String &name) |
Returns the first Processor with the given name (It skips all InternalChains). More... | |
static StringArray | getListOfAllConnectableProcessors (const Processor *processorToSkip) |
Returns a list of all processors that can be connected to a parameter. More... | |
static String | getScriptVariableDeclaration (const Processor *p, bool copyToClipboard=true) |
Returns a string that declares a variable to be copied into a script. More... | |
template<class ProcessorType > | |
static bool | is (const Processor *p) |
Small helper function that checks if the given processor is of the supplied type. More... | |
template<class ProcessorType > | |
static bool | is (Processor *p) |
Small helper function that checks if the given processor is of the supplied type. More... | |
static bool | isHiddableProcessor (const Processor *p) |
Checks if the Processor can be hidden. More... | |
Some handy helper functions that are using mainly the Iterator.
|
static |
Small helper function that returns the parent processor of the given child processor.
childProcessor | the processor which parent should be found. It must be within the normal tree structure. |
getParentSynth | if true, then the synth where the processor resides will be looked for. If false, it will return the chain where the Processor resides (either ModulatorChain, MidiProcessorChain or EffectChain) |
|
static |
Returns the first Processor with the given name (It skips all InternalChains).
If there are multiple Processors with the same name, it will always return the first one.
To avoid this, use PresetHandler::findProcessorsWithDuplicateId...
|
static |
Returns a list of all processors that can be connected to a parameter.
|
static |
Returns a string that declares a variable to be copied into a script.
For a given Processor of type "Type" and id "name" it will return:
id = Synth.getType("id");
Currently supported types (including all subclasses):
|
inlinestatic |
Small helper function that checks if the given processor is of the supplied type.
|
inlinestatic |
Small helper function that checks if the given processor is of the supplied type.