split the loops into 2, one for the first m songs and one for the remaining n-m songs