Guitar_Scale_Length_mm = 648; function fret_scale_length(n) = Guitar_Scale_Length_mm * 2^(-n/12); function lerp(start, end, amount) = start + (end-start)*amount;