Mercurial > hg > ishara
annotate dsp/melspace.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | c3b0cd708782 |
children |
rev | line source |
---|---|
samer@32 | 1 % melspace - create array of frequencies evenly spaced in mel scale |
samer@32 | 2 % |
samer@32 | 3 % melspace :: |
samer@32 | 4 % nonneg ~'lower frequency limit in Hz', |
samer@32 | 5 % nonneg ~'upper frequency limit in Hz', |
samer@32 | 6 % N:natural ~'number of frequency steps' |
samer@32 | 7 % -> [[1,N+1]->nonneg] ~'frequencies in Hz'. |
samer@32 | 8 |
samer@32 | 9 function f=melspace(lowf,highf,N) |
samer@32 | 10 limits=hz2mel([lowf,highf]); |
samer@32 | 11 f=mel2hz(linspace(limits(1),limits(2),N)); |
samer@32 | 12 end |