March 7th, 2004, 02:37 PM
plotting with TChart
I'm getting MIDI timestamp information which I want to plot in real-time using TChart. I'm putting the values ( in milliseconds ) into a listbox at the moment to see what they are. Could anyone give me a clue how to get these values to plot on the Chart?
March 8th, 2004, 05:09 PM
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
March 9th, 2004, 03:02 AM
Originally Posted by Scorpions4ever
Thanks man, I'll check it out. Maybe it'll engender a "Wind of Change". For the rest:
Ok, so maybe I didn't inspire you to come to my rescue, but can you resist the temptation of code?
I'm plotting chart values from MIDI input values. The bottom axis is timestamp values and the left axis should be different for each MIDI note number. I've got the chart doing kind of the right thing for one Y value. Here's my procedure:
procedure TForm1.FormCreate(Sender: TObject);
procedure TForm1.MidiInput1MidiInput(Sender: TObject);
with ( Sender As TMidiInput ) do
thisEvent := MidiInput1.GetMidiEvent;
ListBox1.Items.Add(IntToStr( thisEvent.Time ));
ListBox2.Items.Add(IntToStr( thisEvent.Data1 ));
with Series1 do
AddX ( thisEvent.Time , IntToStr( thisEvent.Time ), clRed );
Any advance on this would be great as I'm stuck at this point.
Thanks in hope.