DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::Equalizer< T, MaxBands >::PrototypeEngine Struct Reference

The state of the prototype-phase mode, allocated in prepare(). More...

#include <Equalizer.h>

Collaboration diagram for dspark::Equalizer< T, MaxBands >::PrototypeEngine:

Public Types

using Curve = std::array< double, kPrototypeBins+1 >
 
using Taps = std::array< T, kPrototypeTaps >
 

Public Attributes

std::array< Curve, MaxBands > bandLog {}
 
std::array< Curve, MaxBands > bandArg {}
 Analog over digital per band: level in nepers, phase in radians.
 
std::array< PrototypeSeen, MaxBands > seen {}
 
std::array< Curve, kPrototypeGroups > groupLog {}
 
std::array< Curve, kPrototypeGroups > groupArg {}
 
std::array< bool, kPrototypeGroups > groupUsed {}
 
Curve omega {}
 The grid, in rad/s.
 
Curve cosOne {}
 
Curve sinOne {}
 z^-1 on the grid ...
 
Curve cosTwo {}
 
Curve sinTwo {}
 ... and z^-2.
 
Curve taper {}
 1 up to the top of the fitted band, down to 0 at Nyquist.
 
std::array< double, kPrototypeTaps > window {}
 
std::array< Taps, kPrototypeSlots > from {}
 
std::array< Taps, kPrototypeSlots > to {}
 
std::array< Taps, kPrototypeSlots > now {}
 Reversed, ready for a dot product.
 
bool crossFrom = false
 
bool crossTo = false
 Whether the matrix has terms between the channels.
 
int fadeLength = 1
 
int fadeLeft = 0
 
unsigned clock = 0
 Free-running, so a fade does not depend on the host's blocks.
 
FFTReal< double > fft { 2 * kPrototypeBins }
 
std::vector< double > spectrum
 
std::vector< double > time
 
std::vector< T > work
 Per channel: the last taps - 1 samples, then the chunk.
 
int channels = 0
 

Detailed Description

template<FloatType T, int MaxBands = 16>
struct dspark::Equalizer< T, MaxBands >::PrototypeEngine

The state of the prototype-phase mode, allocated in prepare().

Definition at line 1850 of file Equalizer.h.

Member Typedef Documentation

◆ Curve

template<FloatType T, int MaxBands = 16>
using dspark::Equalizer< T, MaxBands >::PrototypeEngine::Curve = std::array<double, kPrototypeBins + 1>

Definition at line 1852 of file Equalizer.h.

◆ Taps

template<FloatType T, int MaxBands = 16>
using dspark::Equalizer< T, MaxBands >::PrototypeEngine::Taps = std::array<T, kPrototypeTaps>

Definition at line 1853 of file Equalizer.h.

Member Data Documentation

◆ bandArg

template<FloatType T, int MaxBands = 16>
std::array<Curve, MaxBands> dspark::Equalizer< T, MaxBands >::PrototypeEngine::bandArg {}

Analog over digital per band: level in nepers, phase in radians.

Definition at line 1855 of file Equalizer.h.

◆ bandLog

template<FloatType T, int MaxBands = 16>
std::array<Curve, MaxBands> dspark::Equalizer< T, MaxBands >::PrototypeEngine::bandLog {}

Definition at line 1855 of file Equalizer.h.

◆ channels

template<FloatType T, int MaxBands = 16>
int dspark::Equalizer< T, MaxBands >::PrototypeEngine::channels = 0

Definition at line 1874 of file Equalizer.h.

◆ clock

template<FloatType T, int MaxBands = 16>
unsigned dspark::Equalizer< T, MaxBands >::PrototypeEngine::clock = 0

Free-running, so a fade does not depend on the host's blocks.

Definition at line 1869 of file Equalizer.h.

◆ cosOne

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::cosOne {}

Definition at line 1861 of file Equalizer.h.

◆ cosTwo

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::cosTwo {}

Definition at line 1862 of file Equalizer.h.

◆ crossFrom

template<FloatType T, int MaxBands = 16>
bool dspark::Equalizer< T, MaxBands >::PrototypeEngine::crossFrom = false

Definition at line 1867 of file Equalizer.h.

◆ crossTo

template<FloatType T, int MaxBands = 16>
bool dspark::Equalizer< T, MaxBands >::PrototypeEngine::crossTo = false

Whether the matrix has terms between the channels.

Definition at line 1867 of file Equalizer.h.

◆ fadeLeft

template<FloatType T, int MaxBands = 16>
int dspark::Equalizer< T, MaxBands >::PrototypeEngine::fadeLeft = 0

Definition at line 1868 of file Equalizer.h.

◆ fadeLength

template<FloatType T, int MaxBands = 16>
int dspark::Equalizer< T, MaxBands >::PrototypeEngine::fadeLength = 1

Definition at line 1868 of file Equalizer.h.

◆ fft

template<FloatType T, int MaxBands = 16>
FFTReal<double> dspark::Equalizer< T, MaxBands >::PrototypeEngine::fft { 2 * kPrototypeBins }

Definition at line 1871 of file Equalizer.h.

◆ from

template<FloatType T, int MaxBands = 16>
std::array<Taps, kPrototypeSlots> dspark::Equalizer< T, MaxBands >::PrototypeEngine::from {}

Definition at line 1866 of file Equalizer.h.

◆ groupArg

template<FloatType T, int MaxBands = 16>
std::array<Curve, kPrototypeGroups> dspark::Equalizer< T, MaxBands >::PrototypeEngine::groupArg {}

Definition at line 1857 of file Equalizer.h.

◆ groupLog

template<FloatType T, int MaxBands = 16>
std::array<Curve, kPrototypeGroups> dspark::Equalizer< T, MaxBands >::PrototypeEngine::groupLog {}

Definition at line 1857 of file Equalizer.h.

◆ groupUsed

template<FloatType T, int MaxBands = 16>
std::array<bool, kPrototypeGroups> dspark::Equalizer< T, MaxBands >::PrototypeEngine::groupUsed {}

Definition at line 1858 of file Equalizer.h.

◆ now

template<FloatType T, int MaxBands = 16>
std::array<Taps, kPrototypeSlots> dspark::Equalizer< T, MaxBands >::PrototypeEngine::now {}

Reversed, ready for a dot product.

Definition at line 1866 of file Equalizer.h.

◆ omega

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::omega {}

The grid, in rad/s.

Definition at line 1860 of file Equalizer.h.

◆ seen

template<FloatType T, int MaxBands = 16>
std::array<PrototypeSeen, MaxBands> dspark::Equalizer< T, MaxBands >::PrototypeEngine::seen {}

Definition at line 1856 of file Equalizer.h.

◆ sinOne

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::sinOne {}

z^-1 on the grid ...

Definition at line 1861 of file Equalizer.h.

◆ sinTwo

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::sinTwo {}

... and z^-2.

Definition at line 1862 of file Equalizer.h.

◆ spectrum

template<FloatType T, int MaxBands = 16>
std::vector<double> dspark::Equalizer< T, MaxBands >::PrototypeEngine::spectrum

Definition at line 1872 of file Equalizer.h.

◆ taper

template<FloatType T, int MaxBands = 16>
Curve dspark::Equalizer< T, MaxBands >::PrototypeEngine::taper {}

1 up to the top of the fitted band, down to 0 at Nyquist.

Definition at line 1863 of file Equalizer.h.

◆ time

template<FloatType T, int MaxBands = 16>
std::vector<double> dspark::Equalizer< T, MaxBands >::PrototypeEngine::time

Definition at line 1872 of file Equalizer.h.

◆ to

template<FloatType T, int MaxBands = 16>
std::array<Taps, kPrototypeSlots> dspark::Equalizer< T, MaxBands >::PrototypeEngine::to {}

Definition at line 1866 of file Equalizer.h.

◆ window

template<FloatType T, int MaxBands = 16>
std::array<double, kPrototypeTaps> dspark::Equalizer< T, MaxBands >::PrototypeEngine::window {}

Definition at line 1864 of file Equalizer.h.

◆ work

template<FloatType T, int MaxBands = 16>
std::vector<T> dspark::Equalizer< T, MaxBands >::PrototypeEngine::work

Per channel: the last taps - 1 samples, then the chunk.

Definition at line 1873 of file Equalizer.h.


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