function preload() {
  soundFormats('mp3', 'ogg');
  soundFile = loadSound('../files/beat');
}
Display the average amount of energy (amplitude) across a range
of frequencies using the p5.FFT class and its methods analyze()
and getEnergy().

This example divides the frequency spectrum into eight bands.