You are on page 1of 1

procedure TNotationForm2.

Keys1NoteOn(Sender: TObject; note,


velocity: Integer);
begin
inherited;
with PianoRoll1 do if Assigned (MidiData) then
MainForm.TrackOutputs.TrackOutput [Track].Port.NoteOn (MidiData.Tracks
[Track].Channel, note, velocity);
end;

procedure TNotationForm2.Keys1NoteOff(Sender: TObject; note,


velocity: Integer);
begin
inherited;
with PianoRoll1 do
MainForm.TrackOutputs.TrackOutput [Track].Port.NoteOff (MidiData.Tracks
[Track].Channel, note, velocity);
end;

You might also like