Mercurial > hg > adaptinstrspec
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b4e26b53072f |
---|---|
1 function numPartials = compNumPartials(numFreqs, numBinsPerSemitone) | |
2 % numPartials = compNumPartials(numFreqs, numBinsPerSemitone) | |
3 % | |
4 % compute the number of partials that fall within the spectrogram range | |
5 | |
6 numPartials = floor( 2^(numFreqs / (12 * numBinsPerSemitone)) ); |