Added easy way to switch modes: mode = true for sound-energy, false for frequency-energy.