contestada

What is the purpose of frets on a guitar or the fingerboard on a violin? in terms of frequency of the vibration of the strings?