Skip to main content

set_classes_with_interval_vector

Function set_classes_with_interval_vector 

Source
pub fn set_classes_with_interval_vector(
    vector: &[u8],
) -> Result<Vec<(u8, u8)>, Error>
Expand description

Every set class with this interval vector, as cardinality and Forte class number pairs: music21’s intervalVectorToAddress.

More than one comes back for a Z-related pair — the all-interval tetrachord is both 4-15 and 4-29 — and none at all for a vector no set class has. The inversion is not part of the answer, since a vector says nothing about which half of a pair is meant.

§Errors

When the vector is not six counts long.