All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
SampleLookupTable Class Reference
Inheritance diagram for SampleLookupTable:
Table SafeChangeBroadcaster

Public Member Functions

void setLengthInSamples (double newSampleLength)
float getInterpolatedValue (double sampleIndex)
- Public Member Functions inherited from Table
 Table ()
void setGraphPoints (const Array< GraphPoint > &newGraphPoints, int numPoints)
virtual String exportData () const
virtual void restoreData (const String &savedString)
int getNumGraphPoints () const
GraphPoint getGraphPoint (int pointIndex) const
void createPath (Path &normalizedPath) const
virtual void fillLookUpTable ()
- Public Member Functions inherited from SafeChangeBroadcaster
void sendSynchronousChangeMessage ()
void addChangeListener (SafeChangeListener *listener)
void removeChangeListener (SafeChangeListener *listener)
void removeAllChangeListeners ()
void sendChangeMessage (const String &=String())
void sendAllocationFreeChangeMessage ()

Additional Inherited Members

- Public Types inherited from Table
enum  DataType

Detailed Description

A Table subclass that contains sample data with the fixed size of 2048.

Member Function Documentation

float getInterpolatedValue ( double  sampleIndex)

Returns the interpolated value.

sampleIndexthe sample index from 0 to SAMPLE_LOOKUP_TABLE_SIZE (default 512). Doesn't need to be an integer, of course.
the value of the table between 0.0 and 1.0
void setLengthInSamples ( double  newSampleLength)

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.

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