Skip to main content

split_note_grouping

Function split_note_grouping 

Source
pub fn split_note_grouping(
    grouping: &mut BrailleElementGrouping,
    beat_division_offset: usize,
) -> Result<Option<(BrailleElementGrouping, BrailleElementGrouping)>>
Expand description

A measure of groupings split in two at the middle of its bar, or nearer its start by beat_division_offset divisions of a beat, tied notes kept with the first half and each half beamed again: music21’s splitNoteGrouping.

§Errors

An offset past the beat’s divisions, or a meter that cannot be halved.