to be quite honest, I have no idea where to start on this problem mathematically. However, it struck my curiosity and would love to know how it works on a mathematical level.
the problem
You have a guitar. All of the strings start at a resting position. When you play a string, it is now oscillating between two points (as far as I can tell). The speed at which it oscillates is correlating to the frequency, and the distance between the points is how hard the note was struck or the volume of the note.
You play the E string, open, and let it ring. Then you play the 7th fret of the same string, and let it ring. Now how does one determine how quickly the string is oscillating between the two points in this scenario, in a unit of measurable distance?
All I really have so far is that E and B are a perfect fifth apart, making the ratio of their frequencies 3:2. If one were to play the 12th fret of the same string, that would be a 1:2 relationship. Therefore it follows that the speed they oscillate should follow the same proportions. I, however, am not sure how to get an initial distance.
Edit for some clarity; the application
to put this question in context, I am trying to programmatically work with a three-dimensional model of a guitar as it is played by a guitar player and make it visually convincing.
As such, when he plays an open string, it would move more slowly. If he put his finger on a fret on that string and played it, nothing from his finger to the nut would vibrate, but the rest would vibrate FASTER. I'm trying to discern a reasonable level of accuracy of this visual effect.
Thank you