A fast MDCT implementation using SciPy and FFTs
As usual
pip install mdct
- NumPy
- SciPy
- STFT
import mdct
spectrum = mdct.mdct(sig)
Also see the docs
- Implementation: Marina Bosi, Richard E. Goldberg and Leonardo Chiariglione, "Introduction to Digital Audio Coding and Standards", Kluwer Academic Publishers, 01 December, 2002.