Depending on where you hold down a guitar string (on which fret), it is able to oscillate back and forth at a certain speed. The rate that it oscillates is the note that it is playing.
Different guitar strings have a different thickness. The thickness contributes to how much it will oscillate. Think of how after a certain thickness, you would eventually have a rod that won’t wiggle at all.
Latest Answers