holger@0: function numPartials = compNumPartials(numFreqs, numBinsPerSemitone) holger@0: % numPartials = compNumPartials(numFreqs, numBinsPerSemitone) holger@0: % holger@0: % compute the number of partials that fall within the spectrogram range holger@0: holger@0: numPartials = floor( 2^(numFreqs / (12 * numBinsPerSemitone)) );