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

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.

Detailed Description

One harmonic's contribution to a distortion measurement.

Member Data Documentation

◆ db_below_fundamental

double pulp::test::audio::Harmonic::db_below_fundamental = 0.0

0 for the fundamental, negative below.

◆ hz

double pulp::test::audio::Harmonic::hz = 0.0

◆ index

int pulp::test::audio::Harmonic::index = 0

1 = fundamental, 2 = 2nd harmonic, ...

◆ magnitude

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.


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