Skip to main content

candidates

Function candidates 

Source
pub fn candidates(
    a: &[Pitch],
    b: &[Pitch],
    rule: ConsecutiveRule,
) -> Result<Vec<(usize, usize)>>
Expand description

The pairs of parts, as part numbers, whose move from a to b stands at the rule’s interval and so needs breaks_rule to decide it. For a hidden rule that is the outer parts or nothing.

§Errors

Two possibilities with different numbers of parts, or none.