Extract amp and freq
Hi guys,
here is the problem: i am trying to feed an oscbank~ with the results i am getting from an fft~ analysis. So the question is: how can i extract the base frequency of a bin OUTSIDE a pfft patch?
thanks!
Sample rate divided by the number of bins (which is the same as the fft size) times the bin number (starting from 0) will give you the frequency of each bin. Note that bins above the Nyquist frequency (the top 50% of the bins) "fold back" (or more correctly, wrap around into the negative frequencies) and thus essentially duplicate the first half of the bins. MSP tutorials 25 and 26 discuss this further; chapter 25 shows an example specifically addressing your question.
All that aside, you might find it more manageable to use fffb~ instead of fft~ for what you're apparently trying to do.
Muchos gracias Christopher!!!
BUT: how do i find the running bin number in an fft~ ?(that's why i stated "outside an pfft~ object). Pfft gives you this running bin number but simple fft~ doesn't... Or do i see something wrong here?
Thanks a lot for the fffb~ i'll check this out immediately!
The right outlet of fft~is the bin number.
It's synced!! How could i be so blind!
OK, thanks a lot!!!