function numBinsPerSemitone = getNumBinsPerSemitoneFromFreqVec(freqsInHz)
% numBinsPerSemitone = getNumBinsPerSemitoneFromFreqVec(freqsInHz)
%
% infers the number of bins per semitone from a given constant-Q frequency
% vector in Hz

ratios = freqsInHz(2:end) ./ freqsInHz(1:end-1);
avgRatio =  mean(ratios);
numBinsPerSemitone = round( 1/(12*log2(avgRatio)) );