annotate dsp/hz2mel.m @ 47:82075c94eed1

adding a bunch of stuff, including graphics and pitch toolboxes.
author samer
date Sat, 17 Jan 2015 15:20:35 +0000
parents c3b0cd708782
children
rev   line source
samer@32 1 % hz2mel - Convert frequencies from Hertz to mel scale.
samer@32 2 %
samer@32 3 % hz2mel ::
samer@32 4 % [[D]->nonneg] ~'any shape array of frequencies in Hz'
samer@32 5 % -> [[D]->nonneg] ~'corresponding array of frequencies in mels'.
samer@32 6 %
samer@32 7 % Mel scale is approx linear below 700 Hz, and approx log above.
samer@32 8 % Overall scaling fixed so that 1000 mel = 1000 Hz.
samer@32 9 function m=hz2mel(f), m=2595*log10(1+f/700);