splitNotationsAtOffsets

maelzel.scoring.splitNotationsAtOffsets(notations, offsets)[source]

Split the given notations between the given offsets

NB: Any notations starting after the last offset will not be considered!

Parameters:
  • notations (list[Notation]) – the notations to split

  • offsets (Sequence[Fraction]) – the boundaries.

Return type:

list[tuple[TimeSpan, list[Notation]]]

Returns:

a list of tuples (timespan, notation)