Right, I've been trying to work this out for about 3 hours now. I feel like I'm on the cusp of understanding but just need a straightforward answer from someone knowledgeable in audio-related maths. I'll reply to myself with the problem since I've run out of space in this tweet.
-
Näytä tämä ketju
-
I have an FFT of size S (thus S/2-1 bins), and a Nyquist frequency of F. I want to display a spectrum analyzer with B bars. Given these, how do I calculate the number of FFT bins to combine for each bar from 0 to B-1?
4 vastausta 0 uudelleentwiittausta 1 tykkäysNäytä tämä ketju -
Vastauksena käyttäjälle @TheMogMiner
If you have a real FFT, there should be S/2+1 bins (S/2-1 complex frequencies + 1 real DC + 1 real nyquist). I’ve done this multiple times and it never looks particularly great. My usual approach is to assume each edge has a bin index of A exp(B n) ...
1 vastaus 0 uudelleentwiittausta 2 tykkäystä -
Vastauksena käyttäjille @nickappleton ja @TheMogMiner
Where n is the band index. A and B are derived to ensure that the final band index gives the last bin index and that the low bands use more than one bin.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @nickappleton
"Each edge has a bin index of A exp(B n)" - What are A, B, and n?
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @TheMogMiner
n is the band index < N. The result is the first bin of the next band. A and B control the shape of the banding. B can be set as: B=(ln(S/A))/(N-1) This will ensure all bins are used. A can then be chosen as the number of bins in band 0.
1 vastaus 0 uudelleentwiittausta 2 tykkäystä
Thanks, Nick! I'll give this a shot over the weekend.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.