Mercurial > hg > ishara
view dsp/hz2mel.m @ 58:ba866ae124c6
Now accepts single color index for all points.
author | samer |
---|---|
date | Fri, 09 Oct 2015 13:01:37 +0100 |
parents | c3b0cd708782 |
children |
line wrap: on
line source
% hz2mel - Convert frequencies from Hertz to mel scale. % % hz2mel :: % [[D]->nonneg] ~'any shape array of frequencies in Hz' % -> [[D]->nonneg] ~'corresponding array of frequencies in mels'. % % Mel scale is approx linear below 700 Hz, and approx log above. % Overall scaling fixed so that 1000 mel = 1000 Hz. function m=hz2mel(f), m=2595*log10(1+f/700);