|
Gin
|
Wrapper around juce::OwnedArray<BandLimitedLookupTable> for managing multiple wavetables. More...
#include <gin_wavetable.h>
Public Member Functions | |
| Wavetable ()=default | |
| Wavetable (Wavetable &&other) noexcept | |
| Move constructor. | |
| Wavetable & | operator= (Wavetable &&other) noexcept |
| Move assignment operator. | |
| void | addTable (BandLimitedLookupTable *table) |
| Add a new BandLimitedLookupTable to the collection. | |
| int | getNumTables () const |
| Get the number of tables. | |
| BandLimitedLookupTable * | getTable (int index) |
| Get a table by index. | |
| const BandLimitedLookupTable * | getTable (int index) const |
| Get a table by index (const version) | |
| BandLimitedLookupTable * | operator[] (int index) |
| Array subscript operator for compatibility with OwnedArray usage. | |
| const BandLimitedLookupTable * | operator[] (int index) const |
| Array subscript operator for compatibility with OwnedArray usage (const version) | |
| BandLimitedLookupTable * | getUnchecked (int index) |
| Get unchecked access to a table (for compatibility with OwnedArray) | |
| const BandLimitedLookupTable * | getUnchecked (int index) const |
| Get unchecked access to a table (for compatibility with OwnedArray, const version) | |
| int | size () const |
| Get the number of tables (for compatibility with OwnedArray::size()) | |
| void | clear () |
| Clear all tables. | |
| float | process (int tableIndex, float note, float phase) |
| Process using a specific table index. | |
| float | processLinear (int tableIndex, float note, float phase) |
| Process with linear interpolation using a specific table index. | |
Wrapper around juce::OwnedArray<BandLimitedLookupTable> for managing multiple wavetables.
|
default |
|
noexcept |
Move constructor.
| void Wavetable::addTable | ( | BandLimitedLookupTable * | table | ) |
Add a new BandLimitedLookupTable to the collection.
| int Wavetable::getNumTables | ( | ) | const |
Get the number of tables.
| BandLimitedLookupTable * Wavetable::getTable | ( | int | index | ) |
Get a table by index.
| const BandLimitedLookupTable * Wavetable::getTable | ( | int | index | ) | const |
Get a table by index (const version)
| BandLimitedLookupTable * Wavetable::operator[] | ( | int | index | ) |
Array subscript operator for compatibility with OwnedArray usage.
| const BandLimitedLookupTable * Wavetable::operator[] | ( | int | index | ) | const |
Array subscript operator for compatibility with OwnedArray usage (const version)
| BandLimitedLookupTable * Wavetable::getUnchecked | ( | int | index | ) |
Get unchecked access to a table (for compatibility with OwnedArray)
Referenced by WTOscillator::processAddingComplex(), WTOscillator::processAddingCrossfadeComplex(), and WTOscillator::processAddingSimple().
| const BandLimitedLookupTable * Wavetable::getUnchecked | ( | int | index | ) | const |
Get unchecked access to a table (for compatibility with OwnedArray, const version)
| int Wavetable::size | ( | ) | const |
Get the number of tables (for compatibility with OwnedArray::size())
Referenced by WTOscillator::processAddingComplex(), WTOscillator::processAddingCrossfadeComplex(), and WTOscillator::processAddingSimple().
| void Wavetable::clear | ( | ) |
Clear all tables.
| float Wavetable::process | ( | int | tableIndex, |
| float | note, | ||
| float | phase | ||
| ) |
Process using a specific table index.
| float Wavetable::processLinear | ( | int | tableIndex, |
| float | note, | ||
| float | phase | ||
| ) |
Process with linear interpolation using a specific table index.