Skip to main content

merge_variants_equal_duration

Function merge_variants_equal_duration 

Source
pub fn merge_variants_equal_duration(
    streams: &[&Stream],
    variant_names: &[&str],
) -> Result<Stream>
Expand description

Merges other versions of a stream, each as long as it, into a copy of it: part by part and measure by measure where it has them, each stretch of notes and rests that differs a variant, named by variant_names in turn: music21’s mergeVariantsEqualDuration.

§Errors

A version of another length, one with fewer parts or measures, or a stream holding measures or parts where notes are compared.