Skip to main content

remove_additive_staff_patch

Function remove_additive_staff_patch 

Source
pub fn remove_additive_staff_patch(
    completed: &Staff,
    patch: &AdditiveStaffPatch,
) -> Result<MusicTransform<Staff>, TransformError>
Expand description

Removes exactly the material named by an additive patch.

Removal fails closed if an introduced note or voice has been changed, removed, or replaced since application. This prevents the inverse from deleting material merely because it reuses an identity.