mergeNotations

maelzel.scoring.mergeNotations(a, b)[source]

Merge two compatible notations to one.

For two notations to be mergeable they need to: :rtype: Notation

  • be adjacent or have unset offset

  • have a duration

  • have the same pitch/pitches.

All other attributes are taken from the first notation and the duration of this first notation is extended to cover both notations