A string fixed at both ends vibrates when plucked. The vibration sets the surrounding air into motion, creating sound waves. The pitch of the note you hear is mainly determined by its length and tension. A shorter string has a higher pitch. A tighter string produces faster vibrations, which also leads to a higher pitch.