Leave minAllowedDuration function in one place
Fix overlapping on time values for successive chords