|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <wavetable.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. | |
Definition at line 24 of file wavetable.hpp.
|
inline |
Read a single sample with linear interpolation.
| phase | 32-bit phase (full range = one table cycle) |
Definition at line 39 of file wavetable.hpp.
References sbl::dsp::lut::lookup_linear().
Referenced by sbl::widgets::mod::Lfo< TableSize >::process(), sbl::widgets::source::WavetableOsc< TableSize >::process(), and sbl::widgets::mod::Lfo< TableSize >::value().
|
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 58 of file wavetable.hpp.
References sbl::dsp::lut::lookup_linear().
|
inline |
Read a single sample with cubic Hermite interpolation.
| phase | 32-bit phase |
Definition at line 48 of file wavetable.hpp.
References sbl::dsp::lut::lookup_linear().
|
inline |
Set the wavetable to read from (must have Size+1 guard points for linear)
Definition at line 29 of file wavetable.hpp.
References sbl::dsp::WavetableReader< Size >::table().
Referenced by sbl::widgets::mod::Lfo< TableSize >::set_wavetable(), and sbl::widgets::source::WavetableOsc< TableSize >::set_wavetable().
|
inline |
Current table pointer.
Definition at line 32 of file wavetable.hpp.
Referenced by sbl::dsp::WavetableReader< Size >::set_table().