Skip to main content

stft

Function stft 

Source
pub fn stft(
    x: &[f64],
    window: &[f64],
    hop: usize,
) -> Result<Array2<Complex<f64>>, ErrorsJSL>
Expand description

The one-sided STFT of a real signal: row t holds the spectrum (window.len()/2 + 1 bins) of the frame starting at sample t · hop, windowed by window. Frames run while they fit entirely inside the signal (pad the signal first to cover its edges).