This project is read-only.

Audio freq spectrum

Jan 2, 2015 at 12:33 PM
Hi,

I am trying to create an audio spectrum analyzer using sparrow chart in wpf (something like this: http://www.studiotoolz.net/wp-content/uploads/2012/09/sph-analyzer.png).

I am having trouble with the x axis (the frequency) because it is exponential. My data is an array of objects with 2 values (the frequency and the amplitude).

The frequency values are split into bands like this:

25, 31.5, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, 16000, 20000

So when I set the min and max values of the x axis on the chart (25 and 20000), the value columns are very thin.

It looks correct if I change the frequency values to be 0 - 30 and set the min and max to 0 and 30 respectively but then the x axis does not display the correct frequency values.

Can anyone tell me how to set the x axis values correctly?