Convert to float instead of string before comparing.
Corrected generateFFT so it doesn't use `bucketCount` copies of the same list to store sample history for each bucket.