durationsCanMerge

maelzel.scoring.durationsCanMerge(n0, n1)[source]

True if these Notations can be merged based on duration and start/end

Two durations can be merged if their sum is regular, meaning the sum has a numerator of 1, 2, 3, 4, or 7 (3 means a dotted note, 7 a double dotted note) and the denominator is <= 64 (1/1 being a quarter note)

Parameters:
Return type:

bool

Returns:

True if they can be merged