/stft.js

A Short-Time Fourier Transform Implementation in Javascript

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

stft.js

A Javascript Short-Time Fourier Transform Implementation for audio applications.

Depends on dsp.js.

Use constructor for configuring with the desired stft parameters, then use analyze for analysis applications (process a buffer in one go) or overlapAdd for real-time spectral processing. For an example of the latter, see https://github.com/g-roma/twowaymixer.

In both cases you supply a function (processFunc) that will be passed the real and imaginary parts of the frequency domain array for each frame.