Skip to content

Commit

Permalink
Use natural logarithm in MFCC
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptator authored and Sebastian Böck committed May 19, 2017
1 parent 529356d commit 844c76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion madmom/audio/cepstrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def __new__(cls, spectrogram, filterbank=MelFilterbank,
# filter the spectrogram
data = np.dot(spectrogram, filterbank)
# logarithmically scale the magnitudes
np.log10(mul * data + add, out=data)
np.log(mul * data + add, out=data)
# apply type 2 DCT
data = dct(data, norm=dct_norm)
# cast as MFCC
Expand Down

0 comments on commit 844c76d

Please sign in to comment.