added NoteLength again with new functionality