Skip to main content

parts_same

Function parts_same 

Source
pub fn parts_same(
    a: &[Pitch],
    b: &[Pitch],
    parts: Option<&[usize]>,
) -> Result<bool>
Expand description

Whether each part named in parts sings the same pitch in a and b; with no parts named, they always do. Parts are numbered from one, the highest.

ยงErrors

Two possibilities with different numbers of parts, or a part number they have no part for.