Reimplemented note_classes and note_number using numpy