Don't merge ties and rests due to conflicts with quantization on past Addmusics #350
Labels
addmusic405
Involves an adaptation that originates from Addmusic405.
addmusicm
Involves an adaptation that originates from AddMusicM.
bug
Something isn't working
c++-side
Involves the AddMusicK program itself in some way.
Spun off from #349. Turns out that the test case I used was actually failing for a different reason (though it would still save memory): namely, it is caused by a bad optimization by AddmusicK. Namely, it merges ties and rests together. The problem occurs when merging ties attached to a note (not a rest) due to a conflict with quantization.
Specifically, quantization resets the duration prior to keying off a note when processing a new VCMD regardless of whether it is a tie or a rest. This special case that I found relies on the tie VCMD causing the key off to occur later than what AddmusicK ends up doing by mistake since said duration gets recalculated.
In order to eliminate this bug, I will have to bypass this optimization.
The text was updated successfully, but these errors were encountered: