Skip to main content

move_measure_contents

Function move_measure_contents 

Source
pub fn move_measure_contents<T: XmlTree>(
    measure: &T,
    other: &mut T,
    staff: usize,
) -> Result<()>
Available on crate feature musicxml only.
Expand description

music21’s moveMeasureContents: the contents of measure moved into other behind a <backup> to the start, with voices numbered on from other’s, mid-measure clefs told their staff, and a barline replacing the one at the same end.

§Errors

Either tree no <measure>, and a voice that is no number.