|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
A bank of overlapping sections driven by least squares. More...
#include <GraphicBank.h>
Public Member Functions | |
| void | prepare (double sampleRate, const double *centresHz, int bands, int channels, double qScale=1.0, const double *widthsHz=nullptr) |
| Lays the bank out (allocates). | |
| int | getNumBands () const noexcept |
| double | getCentre (int band) const noexcept |
| int | getLatency () const noexcept |
| double | getSectionGain (int section) const noexcept |
| void | setGains (const T *gainsDb, int rampSamples, int refine=1) noexcept |
| The gains asked of the bands. | |
| double | responseDb (double hz) const noexcept |
| void | reset () noexcept |
| Clears the history (the gains stay). | |
| void | processBlock (AudioBufferView< T > buffer) noexcept |
| Runs a block in place. | |
Static Public Attributes | |
| static constexpr int | kMaxBands = 256 |
| static constexpr int | kCarryRefinement = -1 |
| setGains(): no refining step; the correction of the last refining call is added instead. | |
A bank of overlapping sections driven by least squares.
| T | Sample type (float or double). |
| Lanes | Lanes of the cascade (latency Lanes - 1). |
Definition at line 71 of file GraphicBank.h.
|
inlinenoexcept |
Definition at line 195 of file GraphicBank.h.
|
inlinenoexcept |
Definition at line 197 of file GraphicBank.h.
|
inlinenoexcept |
Definition at line 194 of file GraphicBank.h.
|
inlinenoexcept |
Definition at line 199 of file GraphicBank.h.
|
inline |
Lays the bank out (allocates).
| sampleRate | Rate (invalid values are ignored). |
| centresHz | Band centres, rising (clamped under 0.49 of the rate). |
| bands | Number of bands, 2 to 256. |
| channels | Channels to run. |
| qScale | The bells' Q is the centre over the critical bandwidth there, times this (0.25 to 8). |
| widthsHz | Width of each bell in hertz, in place of the critical bandwidth (bands closer together than a third of a critical band need bells that narrow with them); nullptr, the default, keeps the critical bandwidth. |
Definition at line 91 of file GraphicBank.h.
|
inlinenoexcept |
Runs a block in place.
Definition at line 276 of file GraphicBank.h.
|
inlinenoexcept |
Clears the history (the gains stay).
Definition at line 273 of file GraphicBank.h.
|
inlinenoexcept |
Definition at line 264 of file GraphicBank.h.
|
inlinenoexcept |
The gains asked of the bands.
| gainsDb | getNumBands() gains in dB (clamped to +-24). |
| rampSamples | Samples over which the sections glide to them. |
| refine | Refining steps (0 to 3) on the real response, or kCarryRefinement. |
Definition at line 208 of file GraphicBank.h.
|
staticconstexpr |
setGains(): no refining step; the correction of the last refining call is added instead.
Definition at line 76 of file GraphicBank.h.
|
staticconstexpr |
Definition at line 74 of file GraphicBank.h.