Public Member Functions | List of all members
LookupTableProcessor Class Referenceabstract

A Processor that uses a Table. More...

Inheritance diagram for LookupTableProcessor:
ControlModulator GlobalModulator KeyModulator LfoModulator MacroModulator ModulatorSampler MPEModulator PitchwheelModulator PolyshapeFX RandomModulator ShapeFX TableEnvelope VelocityModulator

Public Member Functions

void addTableChangeListener (SafeChangeListener *listener)
 Adds a listener to this processor. More...
 
virtual int getNumTables () const
 Overwrite this and return the number of tables that this processor uses. More...
 
virtual TablegetTable (int tableIndex) const =0
 Overwrite this method and return the table for the supplied index. More...
 
void removeTableChangeListener (SafeChangeListener *listener)
 Removes a listener from this processor. More...
 
void sendTableIndexChangeMessage (bool sendSynchronous, Table *table, float tableIndex)
 Call this method whenever the table index is changed and all connected tables will receive a change message. More...
 

Detailed Description

A Processor that uses a Table.

If your Processor uses a Table object for anything, you can subclass it from this interface class and use its Table.

Member Function Documentation

void addTableChangeListener ( SafeChangeListener listener)

Adds a listener to this processor.

virtual int getNumTables ( ) const
inlinevirtual

Overwrite this and return the number of tables that this processor uses.

It assumes one table so if you do have one table, you don't need to do anything...

virtual Table* getTable ( int  tableIndex) const
pure virtual

Overwrite this method and return the table for the supplied index.

If you only have one table, ignore this parameter.

Implemented in LfoModulator, KeyModulator, PitchwheelModulator, MacroModulator, and RandomModulator.

void removeTableChangeListener ( SafeChangeListener listener)

Removes a listener from this processor.

void sendTableIndexChangeMessage ( bool  sendSynchronous,
Table table,
float  tableIndex 
)

Call this method whenever the table index is changed and all connected tables will receive a change message.

You can dynamic_cast the broadcaster to a LookupTableProcessor::TableChangeBroadcaster and use this code:

if(dynamic_cast<LookupTableProcessor::TableChangeBroadcaster*>(b) != nullptr)
{
    dynamic_cast<LookupTableProcessor::TableChangeBroadcaster*>(b)->table->setDisplayedIndex(tableValue);
}

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.