This document contains code for two procedures that handle note on and note off events from a piano roll control. When a note on event occurs, it calls the inherited note on method and sends the note information to the MIDI port for the current track. For note off events, it only sends the note off information to the MIDI port without calling the inherited method. Both pass the note number, velocity, and track channel to the appropriate MIDI port note on or note off method.
This document contains code for two procedures that handle note on and note off events from a piano roll control. When a note on event occurs, it calls the inherited note on method and sends the note information to the MIDI port for the current track. For note off events, it only sends the note off information to the MIDI port without calling the inherited method. Both pass the note number, velocity, and track channel to the appropriate MIDI port note on or note off method.
This document contains code for two procedures that handle note on and note off events from a piano roll control. When a note on event occurs, it calls the inherited note on method and sends the note information to the MIDI port for the current track. For note off events, it only sends the note off information to the MIDI port without calling the inherited method. Both pass the note number, velocity, and track channel to the appropriate MIDI port note on or note off method.
velocity: Integer); begin inherited; with PianoRoll1 do if Assigned (MidiData) then MainForm.TrackOutputs.TrackOutput [Track].Port.NoteOn (MidiData.Tracks [Track].Channel, note, velocity); end;
velocity: Integer); begin inherited; with PianoRoll1 do MainForm.TrackOutputs.TrackOutput [Track].Port.NoteOff (MidiData.Tracks [Track].Channel, note, velocity); end;