|
| void | prepare (const AudioSpec &spec) |
| | Prepares the tremolo processor and allocates internal states.
|
| |
| void | processBlock (AudioBufferView< T > buffer) noexcept |
| | Processes an audio block in-place with SIMD-friendly dispatch.
|
| |
| void | reset () noexcept |
| | Hard-resets the internal LFO phase to zero.
|
| |
| void | setRate (T hz) noexcept |
| | Sets the LFO rate. Thread-safe (can be called from UI thread).
|
| |
| void | setDepth (T depth) noexcept |
| | Sets the modulation depth. Thread-safe.
|
| |
| void | setShape (Shape shape) noexcept |
| | Sets the LFO waveform shape. Thread-safe.
|
| |
| void | setStereo (bool enabled) noexcept |
| | Enables auto-pan by offsetting the right channel LFO phase by 180 degrees.
|
| |
| T | getRate () const noexcept |
| |
| T | getDepth () const noexcept |
| |
| Shape | getShape () const noexcept |
| |
| bool | isStereo () const noexcept |
| |
| std::vector< uint8_t > | getState () const |
| | Serializes the parameter state (setup/UI threads; allocates).
|
| |
| bool | setState (const uint8_t *data, size_t size) |
| | Restores parameters from a blob (tolerant; rejects foreign ids).
|
| |
template<FloatType T>
class dspark::Tremolo< T >
LFO-driven amplitude modulation with stereo auto-pan option.
Designed with a template-dispatch architecture to ensure zero branching inside the inner audio loops, maximizing L1 cache hits and SIMD autovectorization.
- Template Parameters
-
| T | Sample type (float or double). |
Definition at line 52 of file Tremolo.h.