|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
Emphasis, static saturators and de-emphasis, with drift, sag and noise. More...
#include <CharacterStage.h>
Classes | |
| struct | Settings |
| The settings of the stage. More... | |
Public Member Functions | |
| void | prepare (const AudioSpec &spec) |
| Allocates the oversampler and the scratch, and clears the state. | |
| void | reset () noexcept |
| Clears every memory and restarts the random sources. Audio thread. | |
| void | setSettings (const Settings &s) noexcept |
| Sets every setting at once (clamped; non-finite fields are ignored). Any thread. | |
| Settings | settings () const noexcept |
| int | getLatency () const noexcept |
| int | getFactor () const noexcept |
| void | process (AudioBufferView< T > buffer) noexcept |
| Colours a block in place. | |
Static Public Attributes | |
| static constexpr int | kMaxChannels = 16 |
Emphasis, static saturators and de-emphasis, with drift, sag and noise.
| T | Sample type (float or double); the arithmetic runs in double. |
Definition at line 78 of file CharacterStage.h.
|
inlinenoexcept |
Definition at line 174 of file CharacterStage.h.
|
inlinenoexcept |
Definition at line 171 of file CharacterStage.h.
|
inline |
Allocates the oversampler and the scratch, and clears the state.
An invalid spec is a no-op that keeps the previous state.
| spec | Host rate, largest block and channel count. |
Definition at line 101 of file CharacterStage.h.
|
inlinenoexcept |
Colours a block in place.
Channels beyond those prepared (or beyond 16) are left untouched, as is the whole block before prepare(). Blocks longer than the prepared size run in pieces. Non-finite samples read as silence.
| buffer | Audio to colour. |
Definition at line 185 of file CharacterStage.h.
|
inlinenoexcept |
Clears every memory and restarts the random sources. Audio thread.
Definition at line 135 of file CharacterStage.h.
|
inlinenoexcept |
Sets every setting at once (clamped; non-finite fields are ignored). Any thread.
Definition at line 152 of file CharacterStage.h.
|
inlinenoexcept |
Definition at line 163 of file CharacterStage.h.
|
staticconstexpr |
Definition at line 92 of file CharacterStage.h.