Mercurial > hg > ishara
diff dsp/cqbasis.m @ 33:5b7d90b6393a
Minor tweaks, still needs work.
author | samer |
---|---|
date | Sun, 20 Jan 2013 18:56:19 +0000 |
parents | c3b0cd708782 |
children |
line wrap: on
line diff
--- a/dsp/cqbasis.m Sun Jan 20 13:48:47 2013 +0000 +++ b/dsp/cqbasis.m Sun Jan 20 18:56:19 2013 +0000 @@ -1,5 +1,5 @@ -function [edges,map]=as_cqmap(parms,range,res) -% as_cqmap - Audio Spectrum linear to log frequency map +function [edges,map]=cqmap(parms,range,res) +% cqmap - Audio Spectrum linear to log frequency map % % Converts a constant-Q filterbank specification into a sparse matrix % which can be multiplied by a STFT power spectrogram to get a @@ -7,7 +7,7 @@ % sampling grid has an adjustable spacing (the resolution parameter), % its origin is FIXED at 1kHz. % -% as_cqmap :: +% cqmap :: % struct { % fs:real ~ 'sampling rate', % FFTsize:natural ~ 'FFT frame size to be used to get STFT' @@ -26,7 +26,7 @@ edges=min(range/parms.fs,0.5); else F0=1000; % MAGIC number - origin of frequnecy grid is 1kHz - edges=as_cqedges(parms.fs,range,res,F0); + edges=cqedges(parms.fs,range,res,F0); % remove edges from bottom end until each band can be resolved e = 0.5+edges*parms.FFTsize; % band edges relative to FT bin edges