|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
The frequencies a design is fitted over at one sample rate. More...
#include <FilterDesign.h>
Public Member Functions | |
| Band () noexcept | |
| Band (double sampleRate) noexcept | |
| void | prepare (double sampleRate) noexcept |
| Sets the sample rate (an invalid one leaves 48 kHz). | |
| double | getSampleRate () const noexcept |
| double | getLowHz () const noexcept |
| double | getHighHz () const noexcept |
Static Public Attributes | |
| static constexpr int | kPoints = 16 |
| Frequencies spread evenly in octaves. | |
| static constexpr double | kTopShare = 20000.0 / 44100.0 + 1e-4 |
| The band never goes past this share of the rate. | |
Friends | |
| class | FilterDesign |
The frequencies a design is fitted over at one sample rate.
From 20 Hz to 20 kHz, or to 0.42 of the rate where that is higher, and never past 0.4536 of the rate (what 20 kHz is of 44.1 kHz: closer to Nyquist no biquad follows an analog curve). An object that designs sections again and again keeps one Band and saves the sines of its frequencies.
Definition at line 299 of file FilterDesign.h.
|
inlinenoexcept |
Definition at line 305 of file FilterDesign.h.
|
inlineexplicitnoexcept |
Definition at line 306 of file FilterDesign.h.
|
inlinenoexcept |
Definition at line 327 of file FilterDesign.h.
|
inlinenoexcept |
Definition at line 326 of file FilterDesign.h.
|
inlinenoexcept |
Definition at line 325 of file FilterDesign.h.
|
inlinenoexcept |
Sets the sample rate (an invalid one leaves 48 kHz).
Definition at line 309 of file FilterDesign.h.
|
friend |
Definition at line 330 of file FilterDesign.h.
|
staticconstexpr |
Frequencies spread evenly in octaves.
Definition at line 302 of file FilterDesign.h.
|
staticconstexpr |
The band never goes past this share of the rate.
Definition at line 303 of file FilterDesign.h.