Fix tuplet chords addition from prev ranges for quantization
Improve addChordsFromPrevRange function