Skip to main content

best_choice

Function best_choice 

Source
pub fn best_choice(
    options: &[Vec<Pitch>],
    rules: EnharmonicRules,
) -> Result<Vec<usize>>
Expand description

Which option of each position scores best under rules, one index per position: the heart of music21’s bestPitches. Combinations are tried in the order itertools.product lists them, and the first strictly lowest wins. A position with no options leaves nothing to choose.

§Errors

A spelling base 40 has no place for.