AudioKit / AudioKitUI

Controls and Visualization for AudioKit apps
MIT License
200 stars 53 forks source link

Better Approximate FFTView #24

Closed emurray2 closed 3 years ago

emurray2 commented 3 years ago

These changes make sure the bufferSize in FFTTap match closely to the numberOfBars in FFTView.

emurray2 commented 3 years ago

I've also already noticed one problem with reducing the size of the FFT buffer like I've done here. It seems to cause more frequency leakage in the low end possibly? But now I can see up to 22kHz at least.

I'm open to what others think as well. It's been a while since I learned about FFT windows, so I'll need some time to go back and refresh my knowledge.

aburgel commented 3 years ago

@emurray2 i tried a different approach here: https://github.com/AudioKit/AudioKitUI/pull/25

I kept the same sized buffer but aggregated the frequencies together so they fit in the desired number of bars.