Open audioluxdevices opened 8 years ago
Ok, so we are thinking an easy code modification, rather than hooking up a knob or button to control this?
fyi, I think the teensy FFT is 1024-point, which creates 10 bands (2^10)
I thought Teensy creates up to 2048 separate bands of amplitude values across 20-20khz?
I'm not an expert but I'm trying to make this more modular, we could make a sketch that has all the additional bells and whistles but it'd be best to have the simplest method first that maybe prints to serialmonitor?
As for input controls, that's a later step for sure. Best keep it as a code mod for the time being.
Looks like Teensy Audio does 512 bands?
there is a 1024 point fft analyzer, but functionally it gives you only 10 bands, since frequency is logrithmic.
In this example Paul makes 16 bands by manually dividing the freq points into groups https://github.com/PaulStoffregen/Audio/blob/master/examples/Analysis/SpectrumAnalyzerBasic/SpectrumAnalyzerBasic.ino#L89
Hmm you probably have a clearer handle on it than I do but in the other FFT example it says the first 40 of 512 bins are printed to serial monitor:
https://github.com/PaulStoffregen/Audio/blob/master/examples/Analysis/FFT/FFT.ino
So what are these 512 bins for?
Audiolux Devices Web http://www.audioluxdevices.com/ | Instagram http://www.instagram.com/audioluxdevices | Facebook http://www.facebook.com/audioluxdevices
On Wed, May 25, 2016 at 1:57 PM, Evan Feenstra notifications@github.com wrote:
there is a 1024 point fft analyzer, but functionally it gives you only 10 bands, since frequency is logrithmic.
In this example Paul makes 16 bands by manually dividing the freq points into groups
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/audiolux/pixel-mapping-library/issues/4#issuecomment-221705120
check out a midi note to frequency chart to understand. http://www.phy.mtu.edu/~suits/notefreqs.html
The low notes are like 1 Hz each, but higher notes are like 400 Hz each. So to group the 512 bins across the frequency spectrum evenly, you need more and more bins per band as you go up (evenly by note, not by hertz). Anyway it works out as a log base 2 curve
_Note: might need separate msgeq7_generate_frequencies / teensy_generatefrequencies?