To view this content, you need to install Java from java.com

This sketch demonstrates the difference between linearly spaced averages and logarithmically spaced averages (averages that are grouped by octave). It also draw the full spectrum so you can see how each set of averages compares to it.

From top to bottom:

Source code: LinLogAverages

Built with Processing