Calculates distance for guitar frets by given scale.