implemented minimum and maximum tempos