Open drumnkyle opened 8 years ago
This is not as simple as we thought, because the note(at:)
method used is different between a Measure
and a NoteCollection
. This should be revisited later. @migue48: please copy and paste as you have already done and leave that there for now. I will make this p2.
Tuplet.preserveTieStateForReplacement(in:with:)
needs to be used inMeasure
replaceNotes methods. Therefore, this logic can be moved into a static function in a helper. That helper will only be static methods (this one for now), so it should be anenum
so that it can't be instantiated. The method signature will need to look like this:Also, use this method in the spots where the TODO are in the
Measure
implementation and substitute usage of theTuplet
method. Tests also need to be written. You can look atTuplet
tests, because there are tests that covered this already.