AudioKit / AudioKitUI

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

FFTView add ability to set bin count and bar count #29

Closed Matt54 closed 3 years ago

Matt54 commented 3 years ago

This PR is dependent on the merge of this: https://github.com/AudioKit/AudioKit/pull/2581

Added ability to set the FFTTap bin count to any valid 2^n bin count

Changed calculation and scale for amplitude. Mostly follows the calculation brought forth by Alex Burgel in this PR: https://github.com/AudioKit/AudioKitUI/pull/25

Minor notes: If you set a bin count, it will attempt to set the bar count to the same number (unless you exceed the maximum bar count allowed or you manually set the bar count)

If the bar count exceeds the bin count, it will still display a bar (at zero)

aure commented 3 years ago

I think this needs an updated reference to AudioKit develop in Packages.resolved to pass CI

Matt54 commented 3 years ago

@aure I updated to the latest AK develop version in the package.swift file. Package.resolved shows the version as 5.2.1. It still isn't finding FFTValidBinCount.. Any idea what to do here?