Mercurial > hg > adaptinstrspec
annotate functions/compNumPartials.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 |
rev | line source |
---|---|
holger@0 | 1 function numPartials = compNumPartials(numFreqs, numBinsPerSemitone) |
holger@0 | 2 % numPartials = compNumPartials(numFreqs, numBinsPerSemitone) |
holger@0 | 3 % |
holger@0 | 4 % compute the number of partials that fall within the spectrogram range |
holger@0 | 5 |
holger@0 | 6 numPartials = floor( 2^(numFreqs / (12 * numBinsPerSemitone)) ); |