Add note overlap check after removeOverlappingNotes function