descriptinc / audiotools

Object-oriented handling of audio data, with GPU-powered augmentations, and more.
https://descriptinc.github.io/audiotools/
MIT License
233 stars 39 forks source link

Added a way for STFT length to match hop length. #38

Closed pseeth closed 2 years ago

pseeth commented 2 years ago

Adds match_stride argument to stft and istft, which pads by (window_length - hop_length) // 2, and produces an STFT with length equal to signal_length / hop_length.