How to make the strings of a guitar connect with the pegs?
Well you could use curves with a curve modifier and an Array modifier

Add Your curve: 


Adapt your curve:


Add a new cylinder and assing it a curve modifier and an array modfier: