The same simulation is used to calculate audio & visuals. Plucking at different parts of the string produces different sounds, just like on a guitar.
Click or drag strings to play
Chopin
Bach
Pachelbel
Satie

Playground