Skip to content

Commit

Permalink
fixed mel_to_stft example, resolves #1672
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Feb 18, 2023
1 parent 3608f17 commit 6f20ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librosa/feature/inverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def mel_to_stft(
Examples
--------
>>> y, sr = librosa.load(librosa.ex('trumpet'))
>>> S = np.abs(librosa.stft(y))
>>> S = librosa.util.abs2(librosa.stft(y))
>>> mel_spec = librosa.feature.melspectrogram(S=S, sr=sr)
>>> S_inv = librosa.feature.inverse.mel_to_stft(mel_spec, sr=sr)
Expand Down

0 comments on commit 6f20ea8

Please sign in to comment.