Skip to main content

Module vibrato

Module vibrato 

Source
Expand description

Detect vibrato — a quasi-periodic modulation of the fundamental — from a pitch track, by locating the peak of the pitch-contour spectrum.

The track is converted to a cents deviation about its geometric-mean pitch, Hann-windowed, and transformed with real_fft_magnitude. The strongest bin inside the vibrato band (≈3–12 Hz) gives the rate; its interpolated magnitude gives the extent (peak-to-peak, in cents); the fraction of contour power it carries gives a strength in [0, 1].

Zero-heap: one caller scratch buffer holds the windowed cents signal and the FFT work area; out_mags receives the contour magnitude spectrum.

Structs§

Vibrato
Vibrato descriptor for a pitch track.

Functions§

detect_vibrato
Detect vibrato in track sampled at track_rate_hz frames/second.
vibrato_scratch_len
Minimum scratch length for a track of track_len samples.