musicaiz.features.pitch_class_transition_matrix¶
- musicaiz.features.pitch_class_transition_matrix(notes: List[musicaiz.structure.notes.Note]) numpy.ndarray [source]¶
Computes the Pitch Class Transition Matrix (PCTM) of a list of musicaiz
Note()
objects.- Parameters
- notes: List[Note]
A list of musicaiz
Note()
objects.
- Returns
- pctm: np.ndarray [shape=(12, 12)]
The PCTM array.