splitNotationAtMeasures

maelzel.scoring.quant.splitNotationAtMeasures(n, struct)[source]

Split a Notation at measure boundaries

Parameters:
  • n (Notation) – the Notation to split. It should have a set offset

  • struct (ScoreStruct) – the ScoreStructure

Return type:

list[tuple[int, Notation]]

Returns:

a list of tuples (measure number, notation), indicating to which measure each part belongs to. The notation in the tuple has an offset relative to the beginning of the measure