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>
|
| 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.
|
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.
◆ 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: