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. | |
Options for the response analyzer. Lengths must be powers of two.
| int pulp::test::audio::ResponseOptions::analysis_offset = 0 |
Samples skipped before the analysis segment.
| int pulp::test::audio::ResponseOptions::channel = 0 |
Output channel analyzed.
| int pulp::test::audio::ResponseOptions::fft_length = 16384 |
Power of two; also the impulse render length.
| double pulp::test::audio::ResponseOptions::kaiser_beta = kDefaultKaiserBeta |
β for Window::kaiser; ignored by every other 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.