Jack,
In order to get the spectrum you want, the most important factors are your sampling rate and the number of samples you pass in to AutoPowerSpectrum. In order to get valid results for signals of up to 20kHz, you must sample your signal at a rate of at least 44kHz (multiply the frequency of the highest signal you are interested in by 2.2).
The next step is to acquire a large enough number of samples to get the resolution you need. The resolution is arrived at by dividing your sample rate by the number of samples. For instance, at 44kHz, 440 samples will give you a resolution of 100Hz. This means that the first number of your spectrum will be the total power from 0 to 100Hz, the second number will be for 100-200Hz, etc. If you need the bands to be centered aroun
d 100, 200, etc, then using 880 samples will give you a resolution of 50Hz. After calling AutoPowerSpectrum, throw out the first number of the result, add the second and third numbers to give you the total power from 50-150Hz. The sum of the fourth and fifth will be the total power from 150-250Hz, etc. If you need smaller bands, increase the number of samples accordingly.
Tony