StaticbeatReturns the beat frequency (interference) between two pitches.
StaticcombinationComputes sum and difference combination tones up to order.
Only non-negative tones are returned.
Difference tones |m·f1 − n·f2|, without zeros.
Sum tones m·f1 + n·f2, for m and n from 1 to order.
StaticconsonanceEstimates sensory roughness based on the Plomp-Levelt critical bandwidth model. Returns a value 0 (smooth) to 1 (maximum roughness).
This is a simplified implementation - accurate only for simple sine-tone pairs.
For complex spectra, use roughnessPlompLevelt.
StaticovertoneReturns the first count partials of the harmonic series starting at fundamental Hz.
StaticroughnessEstimates roughness for a set of frequencies using a pairwise Plomp-Levelt model. Lower values = more consonant.
Array of frequencies in Hz.
Optionalamplitudes: number[]Optional amplitudes (default: all 1).
StaticsensoryEstimates sensory consonance of a chord from the roughness between the harmonic partials of its notes (Sethares' model: partial k at k·f with amplitude rolloff^(k−1)). Only partials of different notes are paired. Returns 1 − roughness / the most roughness those partials could make, from 0 (rough) to 1 (smooth): a fifth scores above a tritone.
The chord to evaluate.
Harmonic partials per note (default 6; 1 = fundamentals only).
Amplitude ratio between consecutive partials (default 0.88).
Psychoacoustic analysis: harmonic series, combination tones, roughness, and sensory consonance.