changeSoundPattern method.