musicaiz.features.pitch_class_histogram¶
- musicaiz.features.pitch_class_histogram(notes: List[musicaiz.structure.notes.Note]) numpy.ndarray [source]¶
Computes the Pitch Class Histogram (PCH) of a list of musicaiz
Note()
objects.Each element in the PCH array represents the counts of each note name in the chromatic scale of 12 notes.
- Parameters
- notes: List[Note]
A list of musicaiz
Note()
objects.
- Returns
- pitch_class_hist: np.ndarray [shape=(12,)]
The PCH array.