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();
41 Paperdef::Paperdef(Paperdef const&s)
43 lookup_p_ = new Lookup(*s.lookup_p_);
44 geometric_ = s.geometric_;
45 whole_width = s.whole_width;
47 linewidth = s.linewidth;
51 Paperdef::set(Lookup*l)
53 assert(l != lookup_p_);
59 Paperdef::interline() const
61 return lookup_p_->ball(4).dim.y.length();
65 Paperdef::internote() const
67 return lookup_p_->internote();
70 Paperdef::note_width()const
72 return lookup_p_->ball(4).dim.x.length( );
75 Paperdef::standard_height() const
81 Paperdef::print() const
84 mtor << "Paper {width: " << print_dimen(linewidth);
85 mtor << "whole: " << print_dimen(whole_width);
86 mtor << "out: " <<outfile;