view dsp/cepstrum.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
% cepstrum - generalised  cepstral coefficients from warped power spectrogram
%
% cepstrum ::
%    [[M]->[K]] ~'which coefficients to compute',
%    [[K]]      ~'edges for (K-2)-band filterbank',
%    [[N]]      ~'centre frequencies of spectrum bins',
%    [[N,T]]    ~'input spectra',
% -> [[M,T]]    ~'MFCCs for L time slices'.
function y = cepstrum(MX,edges,fx,x)
	melW = tri_filterbank(edges,fx);
	dctW = dct(eye(size(melW,1)));
	y = dctW(MX,:)*log(melW*x);
end