A (Live) Example

The code below lives in a draw loop. Each time through the loop we'll tell EasyEars to update the audio data using ears.updateAudio(timeSmoothing), where timeSmoothing is a value between 0.0 and 1.0.

Then access the audio data with ears.lows(), ears.mids(), ears.highs(). Each will return a value between 0.0 and 1.0 representing that frequency range.

Try it below:

Fork me on GitHub