HISE Docs

Chain

A Processor that has a dynamic size of child processors.
If your Processor has more than a fixed amount of internal child processors, derive it from this class, write a Chain::Handler subclass with all needed operations and you can add / delete Processors on runtime.
You might want to overwrite the Processors functions getNumChildProcessors() and getChildProcessor() with the handlers methods (handle internal chains manually) This allows the restoreState function to only clear the dynamic list of processors.

Class Hierarchy

Derived Classes

Class methods

restoreChain

bool restoreChain(const ValueTree &v)

Restores a Chain from a ValueTree. It creates all processors and restores their values. It returns false, if anything went wrong.

getParentProcessor

Processor * getParentProcessor()=0

Overwrite this and return the processor that owns this chain if it exists.

getParentProcessor

const Processor * getParentProcessor() const =0

Overwrite this and return the processor that owns this chain if it exists.

getHandler

Handler * getHandler()=0

return your subclassed Handler.

getHandler

const Handler * getHandler() const =0

read only access to the Handler.

setFactoryType

void setFactoryType(FactoryType *newType)=0

Sets the FactoryType that will be used.

getFactoryType

FactoryType * getFactoryType() const =0

Returns the Factory type this processor is using.