Magnitude spectrum
Frequency spacing of the bins
Note to test
Partials, tolerance, tuning
Optionalreference: numberLoudest bin to normalise against; defaults to the spectrum's own maximum
The spectrum whose levels set each partial's local floor; defaults to
spectrum. Pass the unsubtracted recording when spectrum is a residual — the floors are
cached per spectrum, so the same recording is only measured once however often it is asked
How strongly a spectrum supports a note's harmonic series.
For each of the first
partialspartials, the strongest bin withintoleranceCentsof the partial's frequency is taken; the weighted sum of those peaks is the evidence, reported relative to the spectrum's loudest bin so thresholds mean the same thing for soft and loud attacks.