DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::FilterDesign::Band Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Band() [1/2]

dspark::FilterDesign::Band::Band ( )
inlinenoexcept

Definition at line 305 of file FilterDesign.h.

◆ Band() [2/2]

dspark::FilterDesign::Band::Band ( double  sampleRate)
inlineexplicitnoexcept

Definition at line 306 of file FilterDesign.h.

Member Function Documentation

◆ getHighHz()

double dspark::FilterDesign::Band::getHighHz ( ) const
inlinenoexcept

Definition at line 327 of file FilterDesign.h.

◆ getLowHz()

double dspark::FilterDesign::Band::getLowHz ( ) const
inlinenoexcept

Definition at line 326 of file FilterDesign.h.

◆ getSampleRate()

double dspark::FilterDesign::Band::getSampleRate ( ) const
inlinenoexcept

Definition at line 325 of file FilterDesign.h.

◆ prepare()

void dspark::FilterDesign::Band::prepare ( double  sampleRate)
inlinenoexcept

Sets the sample rate (an invalid one leaves 48 kHz).

Definition at line 309 of file FilterDesign.h.

Friends And Related Symbol Documentation

◆ FilterDesign

friend class FilterDesign
friend

Definition at line 330 of file FilterDesign.h.

Member Data Documentation

◆ kPoints

constexpr int dspark::FilterDesign::Band::kPoints = 16
staticconstexpr

Frequencies spread evenly in octaves.

Definition at line 302 of file FilterDesign.h.

◆ kTopShare

constexpr double dspark::FilterDesign::Band::kTopShare = 20000.0 / 44100.0 + 1e-4
staticconstexpr

The band never goes past this share of the rate.

Definition at line 303 of file FilterDesign.h.


The documentation for this class was generated from the following file: