Mercurial > hg > adaptinstrspec
view 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 |
line wrap: on
line source
function numPartials = compNumPartials(numFreqs, numBinsPerSemitone) % numPartials = compNumPartials(numFreqs, numBinsPerSemitone) % % compute the number of partials that fall within the spectrogram range numPartials = floor( 2^(numFreqs / (12 * numBinsPerSemitone)) );