packInParts

maelzel.scoring.packInParts(notations, maxrange=36, keepGroupsTogether=True)[source]

Pack a list of possibly simultaneous notations into tracks

The notations within one track are NOT simulatenous. Notations belonging to the same group are kept in the same track.

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

  • maxrange – the max. distance between the highest and lowest Notation

  • keepGroupsTogether – if True, items belonging to a same group are kept in a same track

Return type:

list[UnquantizedPart]

Returns:

a list of Parts