mergeNotationsIfPossible

maelzel.scoring.mergeNotationsIfPossible(notations)[source]

Merge the given notations into one, if possible

If two consecutive notations have same .durRatio and merging them would result in a regular note, merge them:

8 + 8 = q
q + 8 = 
q + q = h
16 + 16 = 8

In general:

1/x + 1/x     2/x
2/x + 1/x     3/x  (and viceversa)
3/x + 1/x     4/x  (and viceversa)
6/x + 1/x     7/x  (and viceversa)
Return type:

list[Notation]