Skip to main content

spectrogram

Function spectrogram 

Source
pub fn spectrogram(
    values: &[f64],
    window: usize,
    hop: usize,
    sample_rate: f64,
) -> Spectrogram
Expand description

Short-time Fourier transform with a Hann window.

window is rounded up to a power of two, hop defaults to half the window, and sample_rate is in hertz. Frames start at every hop samples and stop at the last complete window.