Skip to main content

detect_vibrato

Function detect_vibrato 

Source
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 least vibrato_scratch_len floats.
  • out_mags: contour magnitude spectrum, at least fft_len/2 + 1 floats.

Returns a Vibrato; rate_hz == 0.0 means no in-band modulation was found (e.g. a steady or unvoiced track).

§Errors