changeSoundPattern method finished.