Description
📚 The doc issue
In the stft documentation, the formula is given as follows:
Lines 598 to 601 in 1341794
The denominator in the exponent is n_fft. Is that a mistake? I would expect the window length here rather than the number of frequency samples. I cannot find the actual implementation by a quick lookaround, so I have not checked what is done by the code.
Apart from the above, a minor issue is that the '- 1' on top of the sum sign should be outside of the \text macro.
Suggest a potential alternative/fix
Change the denominator to win_length, and leave '-1' in math mode.
.. math::
X[\omega, m] = \sum_{k = 0}^{\text{win\_length}-1}%
\text{window}[k]\ \text{input}[m \times \text{hop\_length} + k]\ %
\exp\left(- j \frac{2 \pi \cdot \omega k}{\text{win\_length}}\right),