How to avoid music repetition