0
the frets make the guitar string make a different sound.
The sound is produced by the vibration of the string.
It causes the string to vibrate more slowly, decreasing the pitch (frequency).
Guitar, ukulele, and bass guitar