Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::MinimumPhaseResponse Class Reference

The minimum-phase response with a given magnitude on an FFT grid, by the folded real cepstrum: ln|H| -> cepstrum -> fold onto positive quefrency -> exp(FFT). More...

#include <loudness_compensation.hpp>

Public Member Functions

void prepare (int fft_size)
 Control thread; allocates. fft_size: the grid (bins = N/2 + 1).
bool prepared () const noexcept
bool compute (std::span< const double > magnitude, double floor, std::span< std::complex< double > > out) noexcept
 magnitude: N/2 + 1 linear magnitudes. out: N/2 + 1 values.

Detailed Description

The minimum-phase response with a given magnitude on an FFT grid, by the folded real cepstrum: ln|H| -> cepstrum -> fold onto positive quefrency -> exp(FFT).

The magnitude is floored at floor first, as a minimum-phase designer floors it.

Member Function Documentation

◆ compute()

bool pulp::signal::MinimumPhaseResponse::compute ( std::span< const double > magnitude,
double floor,
std::span< std::complex< double > > out )
inlinenoexcept

magnitude: N/2 + 1 linear magnitudes. out: N/2 + 1 values.

◆ prepare()

void pulp::signal::MinimumPhaseResponse::prepare ( int fft_size)
inline

Control thread; allocates. fft_size: the grid (bins = N/2 + 1).

◆ prepared()

bool pulp::signal::MinimumPhaseResponse::prepared ( ) const
inlinenodiscardnoexcept

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