A Table subclass that contains sample data with the fixed size of 512. More...
Public Member Functions | |
float | getInterpolatedValue (double sampleIndex) |
Returns the interpolated value. More... | |
void | setLengthInSamples (double newSampleLength) |
Sets a sample amount which will be the sample length of the Table. More... | |
Public Member Functions inherited from Table | |
void | createPath (Path &normalizedPath) const |
This generates a normalized path from the GraphPoint array. More... | |
virtual String | exportData () const |
Exports the data as base64 encoded String. More... | |
virtual void | fillLookUpTable () |
Fills the look up table with the graph points generated from calculateGraphPoints() More... | |
GraphPoint | getGraphPoint (int pointIndex) const |
Get a copy of the graph point at pointIndex. More... | |
int | getNumGraphPoints () const |
Returns the number of graph points. | |
String | getXValueText (float value) |
This returns a String that can be used for displaying purposes. More... | |
virtual void | restoreData (const String &savedString) |
Restores the data from a base64 encoded String. More... | |
void | setGraphPoints (const Array< GraphPoint > &newGraphPoints, int numPoints) |
Sets the GraphPoints. More... | |
Table () | |
Creates a new table of the specified type. More... | |
Public Member Functions inherited from SafeChangeBroadcaster | |
void | addChangeListener (SafeChangeListener *listener) |
Registers a listener to receive change callbacks from this broadcaster. More... | |
void | removeAllChangeListeners () |
Removes all listeners from the list. More... | |
void | removeChangeListener (SafeChangeListener *listener) |
Unregisters a listener from the list. More... | |
void | sendAllocationFreeChangeMessage () |
This will send a message without allocating a message slot. More... | |
void | sendChangeMessage (const String &=String()) |
Causes an asynchronous change message to be sent to all the registered listeners. More... | |
void | sendSynchronousChangeMessage () |
Sends a synchronous change message to all the registered listeners. More... | |
Additional Inherited Members | |
Public Types inherited from Table | |
enum | DataType { Midi = 0, SampleLookupTable } |
A Table can use two data types. More... | |
A Table subclass that contains sample data with the fixed size of 512.
|
inline |
Returns the interpolated value.
sampleIndex | the sample index from 0 to SAMPLE_LOOKUP_TABLE_SIZE (default 512). Doesn't need to be an integer, of course. |
|
inline |
Sets a sample amount which will be the sample length of the Table.
The internal table size will still be 512, but it allows the getValueForSample() method to accept sample data.