#include <dsp_filter.h>
|
void | init (uint32_t window_size, double rate) |
|
void | reset () |
|
Definition at line 287 of file dsp_filter.h.
◆ FFTSpectrum()
ARDOUR::DSP::FFTSpectrum::FFTSpectrum |
( |
uint32_t |
window_size, |
|
|
double |
rate |
|
) |
| |
◆ ~FFTSpectrum()
ARDOUR::DSP::FFTSpectrum::~FFTSpectrum |
( |
| ) |
|
◆ execute()
void ARDOUR::DSP::FFTSpectrum::execute |
( |
| ) |
|
process current data in buffer
◆ freq_at_bin()
float ARDOUR::DSP::FFTSpectrum::freq_at_bin |
( |
const uint32_t |
bin | ) |
const |
|
inline |
◆ init()
void ARDOUR::DSP::FFTSpectrum::init |
( |
uint32_t |
window_size, |
|
|
double |
rate |
|
) |
| |
|
private |
◆ power_at_bin()
float ARDOUR::DSP::FFTSpectrum::power_at_bin |
( |
const uint32_t |
bin, |
|
|
const float |
norm = 1.f |
|
) |
| const |
query
- Parameters
-
bin | the frequency bin 0 .. window_size / 2 |
norm | gain factor (set equal to bin for 1/f normalization) |
- Returns
- signal power at given bin (in dBFS)
◆ reset()
void ARDOUR::DSP::FFTSpectrum::reset |
( |
| ) |
|
|
private |
◆ set_data_hann()
void ARDOUR::DSP::FFTSpectrum::set_data_hann |
( |
float const *const |
data, |
|
|
const uint32_t |
n_samples, |
|
|
const uint32_t |
offset = 0 |
|
) |
| |
set data to be analyzed and pre-process with hanning window n_samples + offset must not be larger than the configured window_size
- Parameters
-
data | raw audio data |
n_samples | number of samples to write to analysis buffer |
offset | destination offset |
◆ _fft_data_in
float* ARDOUR::DSP::FFTSpectrum::_fft_data_in |
|
private |
◆ _fft_data_out
float* ARDOUR::DSP::FFTSpectrum::_fft_data_out |
|
private |
◆ _fft_data_size
uint32_t ARDOUR::DSP::FFTSpectrum::_fft_data_size |
|
private |
◆ _fft_freq_per_bin
double ARDOUR::DSP::FFTSpectrum::_fft_freq_per_bin |
|
private |
◆ _fft_power
float* ARDOUR::DSP::FFTSpectrum::_fft_power |
|
private |
◆ _fft_window_size
uint32_t ARDOUR::DSP::FFTSpectrum::_fft_window_size |
|
private |
◆ _fftplan
fftwf_plan ARDOUR::DSP::FFTSpectrum::_fftplan |
|
private |
◆ fft_planner_lock
Glib::Threads::Mutex ARDOUR::DSP::FFTSpectrum::fft_planner_lock |
|
staticprivate |
◆ hann_window
float* ARDOUR::DSP::FFTSpectrum::hann_window |
|
private |
The documentation for this class was generated from the following file: