11 const Real PHI
= (1+sqrt(5))/2;
15 Paperdef::duration_to_dist(Moment d
)
17 return whole_width
* pow(geometric_
, log_2(d
));
21 Paperdef::rule_thickness()const
23 return convert_dimen(0.4, "pt");
26 Paperdef::Paperdef(Lookup
*l
)
30 linewidth
= convert_dimen(15,"cm"); // in cm for now
31 whole_width
= 8 * note_width();
39 Paperdef::Paperdef(Paperdef
const&s
)
41 lookup_p_
= new Lookup(*s
.lookup_p_
);
42 geometric_
= s
.geometric_
;
43 whole_width
= s
.whole_width
;
45 linewidth
= s
.linewidth
;
49 Paperdef::set(Lookup
*l
)
51 assert(l
!= lookup_p_
);
57 Paperdef::interline() const
59 return lookup_p_
->ball(4).dim
.y
.length();
63 Paperdef::internote() const
65 return lookup_p_
->internote();
68 Paperdef::note_width()const
70 return lookup_p_
->ball(4).dim
.x
.length( );
73 Paperdef::standard_height() const
75 return convert_dimen(20,"pt");
79 Paperdef::print() const
82 mtor
<< "Paper {width: " << print_dimen(linewidth
);
83 mtor
<< "whole: " << print_dimen(whole_width
);
84 mtor
<< "out: " <<outfile
;