A string produces sound when: