p5.js-sound icon indicating copy to clipboard operation
p5.js-sound copied to clipboard

question: freqRange example with getEnergy documentaton

Open unjust opened this issue 2 years ago • 0 comments

I am working with the example of freqRange and trying to understand it, but I'm stumped on this one part of how it is dividing the frequencies.

Why do we use 125 in this formula? Is it something to do with bass, treble defaults? Maybe we could document where this comes from, or comment it. https://github.com/processing/p5.js-sound/blob/1ebdbe73d731274f5aa528773ae91f4bd4acb955/examples/FFT_freqRange/sketch.js#L45

Thanks!

unjust avatar Aug 13 '22 19:08 unjust