Minim FFT AudioInput Thresholds
in
Core Library Questions
•
1 year ago
I went looking through the documentation for Minim, but couldn't find clear documentation on this.
I'm running an FFT on an AudioInput buffer and would like to know the max amplitude I could receive for any given band so that I can draw a line that stretches the height of the screen. e.g:
- /* ... update loop ... */
- fft.forward(in);
- for (int i = 0; i < depth; i++) {
- float f = fft.getBand(i);
- float normal = f / n;
- float ypos = normal * height;
- line(i, 0, i, ypos);
- }
- /* what could n be ??? */
Could this be computer specific or is it a fixed value like 0 - 255? Finally, does
BeatDetect.setSensitivity() share the same value space as this?
1