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

Up to kMaxSections analog sections in series. More...

#include <FilterDesign.h>

Public Member Functions

void add (const AnalogSection &section) noexcept
 Appends a section (ignored once the cascade is full).
 
double magnitudeSquared (double omega) const noexcept
 Squared magnitude of the whole cascade at an angular frequency (rad/s).
 
double magnitudeDb (double hz) const noexcept
 Magnitude of the whole cascade in decibels at a frequency in hertz.
 

Public Attributes

std::array< AnalogSection, kMaxSections > sections {}
 
int count = 0
 

Static Public Attributes

static constexpr int kMaxSections = 16
 

Detailed Description

Up to kMaxSections analog sections in series.

Definition at line 248 of file FilterDesign.h.

Member Function Documentation

◆ add()

void dspark::AnalogCascade::add ( const AnalogSection &  section)
inlinenoexcept

Appends a section (ignored once the cascade is full).

Definition at line 256 of file FilterDesign.h.

◆ magnitudeDb()

double dspark::AnalogCascade::magnitudeDb ( double  hz) const
inlinenoexcept

Magnitude of the whole cascade in decibels at a frequency in hertz.

Definition at line 270 of file FilterDesign.h.

◆ magnitudeSquared()

double dspark::AnalogCascade::magnitudeSquared ( double  omega) const
inlinenoexcept

Squared magnitude of the whole cascade at an angular frequency (rad/s).

Definition at line 262 of file FilterDesign.h.

Member Data Documentation

◆ count

int dspark::AnalogCascade::count = 0

Definition at line 253 of file FilterDesign.h.

◆ kMaxSections

constexpr int dspark::AnalogCascade::kMaxSections = 16
staticconstexpr

Definition at line 250 of file FilterDesign.h.

◆ sections

std::array<AnalogSection, kMaxSections> dspark::AnalogCascade::sections {}

Definition at line 252 of file FilterDesign.h.


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