Skip to main content

address_of_pitch_classes

Function address_of_pitch_classes 

Source
pub fn address_of_pitch_classes(
    pitch_classes: &[u8],
) -> Result<ChordTableAddress, Error>
Expand description

Where a set of pitch classes sits in the tables: music21’s seekChordTablesAddress.

The pitch classes are the chord’s own, in order and without repeats — Chord::pitch_classes is what a chord hands over.

§Errors

When there are no pitch classes at all, or more than the tables hold.