|
| | LoFi () |
| |
| void | prepare (const AudioSpec &spec) |
| | Prepares every stage. Invalid specs are ignored; allocates (setup thread).
|
| |
| void | reset () noexcept |
| | Clears every stage's memory.
|
| |
| void | processBlock (AudioBufferView< T > buffer) noexcept |
| | Processes a block in place. Pass-through until prepare() succeeds.
|
| |
| void | setSmear (T amount) noexcept |
| | How far the grains' read position wanders, 0 to 1 (0, the default, with no pitch: no grains).
|
| |
| void | setPitch (T semitones) noexcept |
| | Pitch of the grains in semitones, -24 to +12 (0, the default, with no smear: no grains).
|
| |
| void | setFold (T dB) noexcept |
| | Fold gain in dB, 0 to 36; 0, the default, is off (see the file notes).
|
| |
| void | setRate (T hz) noexcept |
| | Sample rate of the hold in hertz, from 100; at or above the stream's rate, the default, it is off.
|
| |
| void | setRateFilter (bool on) noexcept |
| | A 48 dB per octave low-pass at 0.45 of the rate in front of the hold (off by default).
|
| |
| void | setBits (T bits) noexcept |
| | Bit depth, 1 to 24 (fractional values too); 24, the default, is off.
|
| |
| void | setDither (bool on) noexcept |
| | Triangular dither of one step before the rounding (off by default).
|
| |
| void | setMix (T mix) noexcept |
| | Dry/wet mix, 0 to 1 (default 1); glides over 20 ms.
|
| |
| void | setOutput (T dB) noexcept |
| | Output gain in dB, -24 to +12 (default 0); glides over 20 ms.
|
| |
| T | getSmear () const noexcept |
| |
| T | getPitch () const noexcept |
| |
| T | getFold () const noexcept |
| |
| T | getRate () const noexcept |
| |
| bool | isRateFilter () const noexcept |
| |
| T | getBits () const noexcept |
| |
| bool | isDither () const noexcept |
| |
| T | getMix () const noexcept |
| |
| T | getOutput () const noexcept |
| |
| std::vector< uint8_t > | getState () const |
| | Serializes the settings.
|
| |
| bool | setState (const uint8_t *data, size_t size) |
| | Restores what getState() wrote.
|
| |
template<FloatType T>
class dspark::LoFi< T >
Grains, fold, sample rate and bit depth, each off by default.
- Template Parameters
-
| T | Sample type (float or double). |
Definition at line 72 of file LoFi.h.