Open thedpws opened 4 years ago
How will the measure know about this change? Maybe it doesn't, until it tries to be iterated through and it sees a hole in it's rhythm, at which moment it returns an appropriately-lengthed rest.
A similar issue occurs when changing the time signature of a Part. How will its inner measures be informed that their length requirements have been changed?
Implicitly add rests to the measure on instantiation.
Measure()
in 4/4 time should result in a measure with notes[ Rest(4.0) ]
m.append(Note('A', 1.0))
should result in notes[ Note(A', 1.0), Rest(3.0) ]
m[0] = Note('A', 1.0)
,m[2] = Note('B', 1.0)
, should result in notes[ Note('A', 1.0), Rest(1.0), Note('B', 1.0), Rest(1.0) ]