pub fn detect_vibrato(
track: &[f32],
track_rate_hz: f32,
scratch: &mut [f32],
out_mags: &mut [f32],
) -> Result<Vibrato, AudioError>Expand description
Detect vibrato in track sampled at track_rate_hz frames/second.
track: pitch values (Hz); non-positive entries are treated as unvoiced and contribute zero deviation.track_rate_hz: pitch-track frame rate (frames per second), > 0.scratch: work buffer, at leastvibrato_scratch_lenfloats.out_mags: contour magnitude spectrum, at leastfft_len/2 + 1floats.
Returns a Vibrato; rate_hz == 0.0 means no in-band modulation was
found (e.g. a steady or unvoiced track).
§Errors
AudioError::InvalidParameteriftrack_rate_hz ≤ 0, the usable length is below 16, or the track carries no voiced samples.AudioError::OutputBufferTooSmallifscratch/out_magsare short.