One harmonic's contribution to a distortion measurement. More...
#include <audio_spectrum.hpp>
Public Attributes | |
| int | index = 0 |
| 1 = fundamental, 2 = 2nd harmonic, ... | |
| double | hz = 0.0 |
| double | magnitude = 0.0 |
| Linear bin magnitude, analyzer-relative scale (the FFT backend's absolute normalization is arbitrary — compare these to each other, not to an absolute reference). | |
| double | db_below_fundamental = 0.0 |
| 0 for the fundamental, negative below. | |
One harmonic's contribution to a distortion measurement.
| double pulp::test::audio::Harmonic::db_below_fundamental = 0.0 |
0 for the fundamental, negative below.
| double pulp::test::audio::Harmonic::hz = 0.0 |
| int pulp::test::audio::Harmonic::index = 0 |
1 = fundamental, 2 = 2nd harmonic, ...
| double pulp::test::audio::Harmonic::magnitude = 0.0 |
Linear bin magnitude, analyzer-relative scale (the FFT backend's absolute normalization is arbitrary — compare these to each other, not to an absolute reference).
Coherent-gain normalized, so the value does not depend on which window the analyzer selected. db_below_ fundamental, thd, and thd_plus_n are ratios of these and so are unaffected by the normalization.