vail-systems / node-mfcc

Node.JS implementation of the MFCC algorithm
MIT License
40 stars 12 forks source link

hzToMels / melsToHz coefficient #3

Closed nicolaspanel closed 7 years ago

nicolaspanel commented 8 years ago

Hi,

First, thank you for sharing this project.

I am a little bit confused with the implementation of the hzToMels method. Why are you using 1127 instead of 2595?

BR

joshjung commented 7 years ago

@nicolaspanel It has been over a year since I wrote this code but I believe we are using the 1127 because Math.log is the natural logarithm, and not base 10. See here:

https://en.wikipedia.org/wiki/Mel_scale

2595 for log base 10 1127 for log base e

Hope that helps!

nicolaspanel commented 7 years ago

tx!