Skip to main content

unwrap_register

Function unwrap_register 

Source
pub fn unwrap_register(
    staff: &Staff,
    range: RegisterRange,
) -> Result<MusicTransform<Staff>, TransformError>
Expand description

Chooses octave placements that minimize adjacent motion within range.

Pitch classes, timings, voices, and identities remain fixed. The report stores both pitches for every register edit, making restore_register an exact inverse.