Skip to main content

read_address

Function read_address 

Source
pub fn read_address(
    cardinality: u8,
    forte_class: u8,
    inversion: Option<i8>,
) -> Result<(u8, u8, i8), Error>
Expand description

Reads an address, filling in the inversion where one was not given: music21’s _validateAddress.

A class that is its own inversion answers nought; one that is not answers the first of its pair.

§Errors

When the cardinality, the class number or the inversion names no set class.