Another way to say "playing a guitar is for producing sound" is "Playing a guitar produces sound."