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

The minimum-phase kernel of a log magnitude, by its real cepstrum: what SpectralFilter and DetailFilter design their kernels with. More...

#include <SpectralFilter.h>

Public Member Functions

void prepare (int bins) noexcept
 Takes the size of the design (allocates nothing).
 
void build (FFTReal< double > &fft, double *h, double *c, int size, const double *taper, int length) noexcept
 The kernel, cut and tapered.
 

Static Public Attributes

static constexpr double kLeastLogGain = -13.815510557964274
 A log gain is taken no lower: -120 dB.
 

Detailed Description

The minimum-phase kernel of a log magnitude, by its real cepstrum: what SpectralFilter and DetailFilter design their kernels with.

Audio thread, except prepare() (setup thread).

Definition at line 76 of file SpectralFilter.h.

Member Function Documentation

◆ build()

void dspark::detail::MinimumPhase::build ( FFTReal< double > &  fft,
double *  h,
double *  c,
int  size,
const double *  taper,
int  length 
)
inlinenoexcept

The kernel, cut and tapered.

Parameters
fftThe transform of the design.
hOn entry the log magnitude as a real spectrum; overwritten.
cThe kernel in time: length samples, zeros after them.
sizeThe size of the transform.
taperlength weights.
lengthThe samples kept.

Definition at line 96 of file SpectralFilter.h.

◆ prepare()

void dspark::detail::MinimumPhase::prepare ( int  bins)
inlinenoexcept

Takes the size of the design (allocates nothing).

Parameters
binsBins of the transform of the design.

Definition at line 85 of file SpectralFilter.h.

Member Data Documentation

◆ kLeastLogGain

constexpr double dspark::detail::MinimumPhase::kLeastLogGain = -13.815510557964274
staticconstexpr

A log gain is taken no lower: -120 dB.

Definition at line 79 of file SpectralFilter.h.


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