Skip to main content

incorrect_measures

Function incorrect_measures 

Source
pub fn incorrect_measures(part: &Stream, run_fast: bool) -> Result<Vec<usize>>
Expand description

Which of a part’s measures do not fill their bar, and so would be flagged by an optical reader: music21’s SinglePart.getIncorrectMeasureIndices.

With run_fast, every bar is that of the first measure’s time signature, or of 4/4 where none is in force; without, each measure’s own. The places are counted from nought, as music21 counts them, and are not measure numbers.

§Errors

Without run_fast, a measure with no time signature in force, which music21 fails on.