|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 25 of file wavetable_reader.hpp.
#include <wavetable_reader.hpp>
Public Member Functions | |
| void | set_table (const float *table) |
| Set the wavetable to read from (must have Size+1 guard points for linear) | |
| const float * | table () const |
| Current table pointer. | |
| float | read (uint32_t phase) const |
| Read a single sample with linear interpolation. | |
| float | read_cubic (uint32_t phase) const |
| Read a single sample with cubic Hermite interpolation. | |
| void | read_block (const uint32_t *phases, float *out, uint16_t frames) const |
| Read a block of samples using linear interpolation. | |
|
inline |
Set the wavetable to read from (must have Size+1 guard points for linear)
Definition at line 30 of file wavetable_reader.hpp.
References sbl::dsp::primitives::WavetableReader< Size >::table().
Referenced by sbl::dsp::comp::Lfo< TableSize >::set_wavetable().
|
inline |
Current table pointer.
Definition at line 33 of file wavetable_reader.hpp.
Referenced by sbl::dsp::primitives::WavetableReader< Size >::set_table().
|
inline |
Read a single sample with linear interpolation.
| phase | 32-bit phase (full range = one table cycle) |
Definition at line 40 of file wavetable_reader.hpp.
Referenced by sbl::dsp::modules::TapeDelay::process(), sbl::dsp::comp::Lfo< TableSize >::process(), and sbl::dsp::comp::Lfo< TableSize >::value().
|
inline |
Read a single sample with cubic Hermite interpolation.
| phase | 32-bit phase |
Definition at line 49 of file wavetable_reader.hpp.
|
inline |
Read a block of samples using linear interpolation.
| phases | Array of per-sample phase values |
| out | Output sample buffer |
| frames | Number of frames to process |
Definition at line 59 of file wavetable_reader.hpp.