Mercurial > hg > adaptinstrspec
comparison functions/idceps.m @ 0:b4e26b53072f tip
Initial commit.
author | Holger Kirchhoff <holger.kirchhoff@eecs.qmul.ac.uk> |
---|---|
date | Tue, 04 Dec 2012 13:57:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b4e26b53072f |
---|---|
1 function X = idceps(c, w) | |
2 % X = idceps(c, w) | |
3 % | |
4 % computes the inverse discrete cepstrum, i.e. given a number of discrete | |
5 % cepstral coefficients, it returns the spectrum. | |
6 % | |
7 % c contains the discrete cepstral coefficients | |
8 % w contains the frequency at which the spectrum is evaluated. | |
9 % c and w must be column vectors. | |
10 % | |
11 % Further details can be found in: | |
12 % [1] Diemo Schwarz. Spectral envelopes in sound analysis and synthesis. | |
13 % Master's thesis, Universitaet Stuttgart, 1998, pp. 36-38. | |
14 % [2] T. Galas and X. Rodet. An improved cepstral method for deconvolution | |
15 % of source filter systems with discrete spectra: Application to musical | |
16 % sound signals. In International Computer Music Conference, 1990. | |
17 | |
18 pmax = length(c)-1; | |
19 numW = length(w); | |
20 | |
21 exponent = sum( repmat(c', numW, 1) .* cos(w*(0:pmax)), 2 ); | |
22 X = exp(exponent); |