Skip to content

Commit

Permalink
fixed some integer window length issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Jul 26, 2017
1 parent 6a822f1 commit fa3a96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librosa/core/constantq.py
Expand Up @@ -704,14 +704,14 @@ def icqt(C, sr=22050, hop_length=512, fmin=None,
wss = filters.window_sumsquare(window,
n_frames,
hop_length=oct_hop,
win_length=lengths[i],
win_length=int(lengths[i]),
n_fft=n_fft)

# Construct the response for this filter
y_oct_i = np.zeros(n, dtype=C_oct.dtype)
__activation_fill(y_oct_i, basis_oct[i], C_oct[i], oct_hop)
# Retain only the real part
# Only do squared window normalization for sufficiently large window
# Only do window normalization for sufficiently large window
# coefficients
y_oct_i = y_oct_i.real / np.maximum(amin, wss)

Expand Down

0 comments on commit fa3a96c

Please sign in to comment.