Tyler Eaves wrote:
> One suggestion: The frets on a guitar get furthur apart as you go up the
> neck.
but sleepers stay the same distance apart :-), the result
is a compromise/average:
#local C = StringLength / 96;
#local N = NumFrets;
#declare NextFret = function(n, l) {
(n * (l - C) + (N - n) * (l * (23/24))) / N
}
and in the loop:
#local I = 0;
#local Pos = StringLength;
#while (I < NumFrets)
#local Pos = NextFret(I, Pos);
...
--
Bill Hails
Post a reply to this message
|