Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::test::audio::ResponseOptions Struct Reference

Options for the response analyzer. Lengths must be powers of two. More...

#include <audio_spectrum.hpp>

Public Attributes

int fft_length = 16384
 Power of two; also the impulse render length.
int analysis_offset = 0
 Samples skipped before the analysis segment.
Window window = Window::rectangular
 Rectangular by default: the stimulus is an impulse at frame 0, so a Hann window (zero weight at n=0) would annihilate it.
int channel = 0
 Output channel analyzed.
double kaiser_beta = kDefaultKaiserBeta
 β for Window::kaiser; ignored by every other window.

Detailed Description

Options for the response analyzer. Lengths must be powers of two.

Member Data Documentation

◆ analysis_offset

int pulp::test::audio::ResponseOptions::analysis_offset = 0

Samples skipped before the analysis segment.

◆ channel

int pulp::test::audio::ResponseOptions::channel = 0

Output channel analyzed.

◆ fft_length

int pulp::test::audio::ResponseOptions::fft_length = 16384

Power of two; also the impulse render length.

◆ kaiser_beta

double pulp::test::audio::ResponseOptions::kaiser_beta = kDefaultKaiserBeta

β for Window::kaiser; ignored by every other window.

◆ window

Window pulp::test::audio::ResponseOptions::window = Window::rectangular

Rectangular by default: the stimulus is an impulse at frame 0, so a Hann window (zero weight at n=0) would annihilate it.

With rectangular, the impulse passes intact, its spectrum is flat, and the output/input ratio is the true transfer magnitude with no leakage for an IR that has decayed within fft_length. Choose a tapered window only with a non-impulse stimulus whose response rings past the window — and pick it by side-lobe level (see Window), not habit.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/tools/audio/analysis/include/pulp/audio/analysis/audio_spectrum.hpp