Mercurial > hg > ishara
view dsp/melspace.m @ 42:ae596261e75f
Various fixes and development to audio handling
author | samer |
---|---|
date | Tue, 02 Dec 2014 14:51:13 +0000 |
parents | c3b0cd708782 |
children |
line wrap: on
line source
% melspace - create array of frequencies evenly spaced in mel scale % % melspace :: % nonneg ~'lower frequency limit in Hz', % nonneg ~'upper frequency limit in Hz', % N:natural ~'number of frequency steps' % -> [[1,N+1]->nonneg] ~'frequencies in Hz'. function f=melspace(lowf,highf,N) limits=hz2mel([lowf,highf]); f=mel2hz(linspace(limits(1),limits(2),N)); end