Skip to content

Commit

Permalink
Allow hop_len > win_len
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLordGoldDragon committed Apr 15, 2021
1 parent 20397f0 commit f5bf385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssqueezepy/_stft.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def get_window(window, win_len, n_fft=None, derivative=False, dtype=None):

def _check_NOLA(window, hop_len):
"""https://gauss256.github.io/blog/cola.html"""
if not sig.check_NOLA(window, len(window), len(window) - hop_len):
if (hop_len > len(window) or
not sig.check_NOLA(window, len(window), len(window) - hop_len)):
WARN("`window` fails Non-zero Overlap Add (NOLA) criterion; STFT "
"not invertible")

0 comments on commit f5bf385

Please sign in to comment.