Helper functions for note-on/off