MIDI note handling