Skip to main content

time_stretch

Function time_stretch 

Source
pub fn time_stretch(
    surface: &TfSurface<'_>,
    factor: f32,
    out: &mut [f32],
) -> Result<(usize, usize), SurfaceEditError>
Expand description

Time-stretch by resampling along the time axis. factor > 1.0 stretches, factor < 1.0 compresses. out must be at least new_frame_count * bin_count where new_frame_count = round(frame_count * factor).