pub fn istft<T: Float>(
spectrogram: &[Vec<Complex<T>>],
hop_size: usize,
window: WindowFunction,
) -> Vec<T>Expand description
Compute Inverse Short-Time Fourier Transform (ISTFT).
Reconstructs a time-domain signal from a spectrogram using overlap-add.
§Arguments
spectrogram- Spectrogram (Vec of spectra)hop_size- Number of samples between frames (must match STFT)window- Window function (must match STFT)
§Returns
Reconstructed time-domain signal.
§Example
use oxifft::streaming::{stft, istft, WindowFunction};
let signal = vec![1.0f64; 1024];
let spectrogram = stft(&signal, 256, 64, WindowFunction::Hann);
let reconstructed = istft(&spectrogram, 64, WindowFunction::Hann);