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
26 Paperdef::Paperdef(Lookup *l)
29 linewidth = 15 *CM_TO_PT; // in cm for now
30 whole_width = 8 * note_width();
38 Paperdef::Paperdef(Paperdef const&s)
40 lookup_p_ = new Lookup(*s.lookup_p_);
41 geometric_ = s.geometric_;
42 whole_width = s.whole_width;
44 linewidth = s.linewidth;
48 Paperdef::set(Lookup*l)
50 assert(l != lookup_p_);
56 Paperdef::interline() const
58 return lookup_p_->ball(4).dim.y.length();
62 Paperdef::internote() const
64 return lookup_p_->internote();
67 Paperdef::note_width()const
69 return lookup_p_->ball(4).dim.x.length( );
72 Paperdef::standard_height() const
78 Paperdef::print() const
81 mtor << "Paper {width: " << print_dimen(linewidth);
82 mtor << "whole: " << print_dimen(whole_width);
83 mtor << "out: " <<outfile;