Merge "Fix NoteOpEvent to return the last entry with max duration" into main