view dsp/lin2mel.m @ 36:9e7be347b3a0

Renamed sequence classes to avoid clashes with seq methods; Fixed default slicing dimension while retaining behaviour of window.m; Updated use of sequences in dsp/synth.
author samer
date Thu, 24 Jan 2013 14:51:23 +0000
parents c3b0cd708782
children
line wrap: on
line source
% lin2mel - matrix to warp linear scale power spectra to mel scale
%
% lin2mel :: 
%    N:natural      ~'size of FFT used to compute spectra',
%    nonneg         ~'sampling frequency',
%    [[1,2]->freq]  ~'upper and lower frequency limits',
%    L:natural      ~'number of mel bands to compute' 
% -> [[L,dftbins(N)]].

function melW=lin2mel(N,fs,flim,L)
	melW = tri_filterbank_aa(melspace(flim(1),min(flim(2),fs/2),L+2),binmap(0,fs/2,dftbins(N)));
end