This class handles the Modulators within the specified ModulatorChain. More...
Public Member Functions | |
void | addModulator (Modulator *newModulator, Processor *siblingToInsertBefore) |
adds a Modulator to the chain. More... | |
void | deleteModulator (Modulator *modulatorToBeDeleted, bool deleteMod) |
Deletes the Modulator. More... | |
Modulator * | getModulator (int modIndex) const |
Returns the modulator at the specified index. More... | |
int | getNumModulators () const |
Returns the number of modulators in the chain. More... | |
ModulatorChainHandler (ModulatorChain *handledChain) | |
Creates a Chain::Handler. More... | |
![]() | |
virtual void | moveProcessor (Processor *, int) |
Overwrite this method and implement a move operation. More... | |
This class handles the Modulators within the specified ModulatorChain.
You can get the handler for each Modulator with ModulatorChain::getHandler().
ModulatorChainHandler | ( | ModulatorChain * | handledChain | ) |
Creates a Chain::Handler.
adds a Modulator to the chain.
You simply pass the reference to the newly created Modulator, and the function detects the correct type and adds it to the specific chain (constant, variant or envelope).
If you call this method after the ModulatorChain is initialized, the Modulator's prepareToPlay will be called.
|
inline |
Returns the modulator at the specified index.
|
inline |
Returns the number of modulators in the chain.