|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
plotting with TChart
Hello all.
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? Thanks all David. |
|
#2
|
||||
|
||||
|
See the section on Adding Data to a Series here:
http://www.adug.org.au/reference/NotesOnTeeChart.htm
__________________
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 Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#3
|
|||
|
|||
|
Quote:
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); begin MidiInput1.Open; MidiInput1.Start; MidiOutput1.Open; end; procedure TForm1.MidiInput1MidiInput(Sender: TObject); var thisEvent: TMyMidiEvent; begin with ( Sender As TMidiInput ) do begin thisEvent := MidiInput1.GetMidiEvent; ListBox1.Items.Add(IntToStr( thisEvent.Time )); ListBox2.Items.Add(IntToStr( thisEvent.Data1 )); MidiOutput1.PutMidiEvent(thisEvent); thisEvent.Free; end; with Series1 do begin AddX ( thisEvent.Time , IntToStr( thisEvent.Time ), clRed ); end; Any advance on this would be great as I'm stuck at this point. Thanks in hope. Dave. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > plotting with TChart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|