Link to home
Start Free TrialLog in
Avatar of Bigfootuk
Bigfootuk

asked on

Reading Graphs in VB

Hi
I've written a program that opens a wave file and displays the waveform to the audio. I've also got a Fourier Transform showing the frequencies of the sounds used in the wavefile.
My question is how can I read this graph. I basically want to write an If statements that say If the frequencies are above 200Hz change the colour of the line from red to green.
The fourier transform using picture.line (if thats of any use to you guys)

Along the X axis is frequency and the Y asix is amplitute

ASKER CERTIFIED SOLUTION
Avatar of sk33v3
sk33v3

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sk33v3
sk33v3

Did I not properly answer the question?
unfortunately, no.
You would have answered it if the question was "I have a drawing on a picturebox, how to change the entire color of it under a given condition" but a Fourier transform is an aggregation of many different 'lines' which represent multiple parameters, so the asker wants to know how to make the particular lines he has turn one color or another.  There could be as few as a couple, and as many as a few hundred depending on the analysis, so the answer here would be based on knowing how the line data generated and stored, and working towards tagging each line with color data.
The answer that I gave was based on the fact that he mentioned he was using a picture box to draw his graph and that he is using the line command. given the fact that if you change the forecolor it will only change the color of items drawn after the change in forecolor I would assume that the answer is correct.