15 double log2(double x
) {
16 return log(x
) /log(2.0);
22 const Real PHI
= (1+sqrt(5))/2;
23 const double ENGRAVERS_SPACE
= PHI
;
24 const double WHOLE_SPACE
= 5.0; // should be settable from input
29 duration_to_idealspace(Mtime d
, Real w
)
32 return w
* pow(ENGRAVERS_SPACE
, log2(d
));