diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/functions/compNumPartials.m	Tue Dec 04 13:57:15 2012 +0000
@@ -0,0 +1,6 @@
+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)) );
\ No newline at end of file