Prevent endless loop when encountering note duration 1 (should still investigate how to prevent this in the first place)