Skip to content

Commit 1b9fbe5

Browse files
committed
Fix: Correct spectrogram calculation in plot_spectrogram
This commit addresses a UserWarning by explicitly converting the complex output of `librosa.stft()` to its absolute value before passing it to `librosa.amplitude_to_db()`. This ensures the function correctly calculates the power spectrogram and prevents potential issues with later versions of the `librosa` library.
1 parent f20470b commit 1b9fbe5

File tree

1 file changed

+18
-31
lines changed

1 file changed

+18
-31
lines changed

3- Intensity, loudness, and timbre/intensity_and_timbre.ipynb

Lines changed: 18 additions & 31 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)