|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
Dynamic equalizer bands with a level at every frequency inside each band. More...
#include <SpectralDynamicEQ.h>
Classes | |
| struct | Band |
| The settings of a band. More... | |
Public Types | |
| enum class | Shape { Off , Bell , LowShelf , HighShelf } |
| The shape of a band. More... | |
Public Member Functions | |
| void | prepare (const AudioSpec &spec) |
| Allocates for a rate and a layout (an invalid spec is ignored). | |
| void | reset () noexcept |
| Clears the analysis, the actions and the filter. | |
| void | setBand (int index, const Band &band) noexcept |
| Sets a band (out-of-range indices are ignored; fields are clamped). | |
| Band | getBand (int index) const noexcept |
| void | setDetail (T octaves) noexcept |
| The detail: how finely the bands move inside themselves, from an octave to 1/24 of one (default 1/12). It moves while playing, at the same latency. | |
| T | getDetail () const noexcept |
| void | setTimeFocus (bool on) noexcept |
| Reads the levels at the top through a window that shortens as frequency rises, centred where the curve is played (off by default; see DetailAnalysis::setTimeFocus()), and plays a brief move as brief as it is drawn (DetailHold::None): what an event there sets off starts later and lasts less, at part of its depth and with less detail at the top. | |
| bool | getTimeFocus () const noexcept |
| int | getLatency () const noexcept |
| double | getGain (double hz) const noexcept |
| T | getDisplayGain (int point) const noexcept |
| T | getPeakGain () const noexcept |
| void | processBlock (AudioBufferView< T > buffer) noexcept |
| Processes the programme in place, its own level driving the bands. | |
| void | processBlock (AudioBufferView< T > buffer, AudioBufferView< T > key) noexcept |
| Processes the programme in place, a key's level driving the bands. | |
| std::vector< uint8_t > | getState () const |
| bool | setState (const uint8_t *data, size_t size) |
| Restores the settings. A blob of the first version, with cells in each band, gives as detail the width of the finest of them (two bandwidths over the cells; 32 at a Q of 1 is 1/12). | |
Static Public Member Functions | |
| static double | getDisplayFrequency (int point) noexcept |
Static Public Attributes | |
| static constexpr int | kBands = 4 |
| Bands. | |
| static constexpr int | kDisplayPoints = SpectralReadout<T>::kPoints |
| Points of the display curve, evenly in log frequency from 20 Hz to 20 kHz. | |
Dynamic equalizer bands with a level at every frequency inside each band.
| T | Sample type (float or double). |
Definition at line 79 of file SpectralDynamicEQ.h.
|
strong |
The shape of a band.
| Enumerator | |
|---|---|
| Off | |
| Bell | |
| LowShelf | |
| HighShelf | |
Definition at line 85 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 160 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 187 of file SpectralDynamicEQ.h.
|
inlinestaticnoexcept |
Definition at line 214 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 220 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 204 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 202 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 222 of file SpectralDynamicEQ.h.
|
inline |
Definition at line 232 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Definition at line 199 of file SpectralDynamicEQ.h.
|
inline |
Allocates for a rate and a layout (an invalid spec is ignored).
Definition at line 101 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Processes the programme in place, its own level driving the bands.
Definition at line 225 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Processes the programme in place, a key's level driving the bands.
Definition at line 227 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Clears the analysis, the actions and the filter.
Definition at line 129 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Sets a band (out-of-range indices are ignored; fields are clamped).
Definition at line 143 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
The detail: how finely the bands move inside themselves, from an octave to 1/24 of one (default 1/12). It moves while playing, at the same latency.
Definition at line 181 of file SpectralDynamicEQ.h.
|
inline |
Restores the settings. A blob of the first version, with cells in each band, gives as detail the width of the finest of them (two bandwidths over the cells; 32 at a Q of 1 is 1/12).
Definition at line 260 of file SpectralDynamicEQ.h.
|
inlinenoexcept |
Reads the levels at the top through a window that shortens as frequency rises, centred where the curve is played (off by default; see DetailAnalysis::setTimeFocus()), and plays a brief move as brief as it is drawn (DetailHold::None): what an event there sets off starts later and lasts less, at part of its depth and with less detail at the top.
Definition at line 197 of file SpectralDynamicEQ.h.
|
staticconstexpr |
Bands.
Definition at line 82 of file SpectralDynamicEQ.h.
|
staticconstexpr |
Points of the display curve, evenly in log frequency from 20 Hz to 20 kHz.
Definition at line 212 of file SpectralDynamicEQ.h.