add const MIDI_NOTE_OFF and MIDI_NOTE_ON
enhanced onItem() method in gPianoRoll