11 const Real PHI
= (1+sqrt(5))/2;
15 Paperdef::duration_to_dist(Moment d
)
20 return whole_width
* pow(geometric_
, log_2(d
));
24 Paperdef::rule_thickness()const
29 Paperdef::Paperdef(Lookup
*l
)
32 linewidth
= 15 *CM_TO_PT
; // in cm for now
33 whole_width
= 8 * note_width();
35 outfile
= "lelie.out";
42 Paperdef::Paperdef(Paperdef
const&s
)
44 lookup_p_
= new Lookup(*s
.lookup_p_
);
45 geometric_
= s
.geometric_
;
46 whole_width
= s
.whole_width
;
48 linewidth
= s
.linewidth
;
52 Paperdef::set(Lookup
*l
)
54 assert(l
!= lookup_p_
);
60 Paperdef::interline() const
62 return lookup_p_
->ball(4).dim
.y
.length();
66 Paperdef::internote() const
68 return lookup_p_
->internote();
71 Paperdef::note_width()const
73 return lookup_p_
->ball(4).dim
.x
.length( );
76 Paperdef::standard_height() const
82 Paperdef::print() const
85 mtor
<< "Paper {width: " << print_dimen(linewidth
);
86 mtor
<< "whole: " << print_dimen(whole_width
);
87 mtor
<< "out: " <<outfile
;