The strings are the primary sound source. When plucked/strummed, they vibrate at specific frequencies determined by:
The body (acoustic) or pickups (electric) amplify and shape the vibration:
Timbre is further colored by wood, construction, pick/material, and player technique.