Skip to content

Commit

Permalink
update hardcoded value (400) to n_fft argument ->tapers = scipy.sig…
Browse files Browse the repository at this point in the history
…nal.windows.dpss(n_fft, 1.5, Kmax=2)
  • Loading branch information
ralphpeterson authored and NickleDave committed Jan 17, 2024
1 parent 45cad17 commit ef4cda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vocalpy/spectral/sat.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def sat(
# ---- make power spec
audio_pad = np.pad(audio.data, pad_width=n_fft // 2)
windows = librosa.util.frame(audio_pad, frame_length=n_fft, hop_length=hop_length, axis=0)
tapers = scipy.signal.windows.dpss(400, 1.5, Kmax=2)
tapers = scipy.signal.windows.dpss(n_fft, 1.5, Kmax=2)
windows1 = windows * tapers[0, :]
windows2 = windows * tapers[1, :]

Expand Down

0 comments on commit ef4cda8

Please sign in to comment.