3 #include "paper-def.hh"
11 const Real PHI = (1+sqrt(5))/2;
15 Paper_def::duration_to_dist(Moment d)
20 return whole_width * pow(geometric_, log_2(d));
24 Paper_def::rule_thickness()const
29 Paper_def::Paper_def(Lookup *l)
32 linewidth = 15 *CM_TO_PT; // in cm for now
33 whole_width = 8 * note_width();
35 outfile = "lelie.out";
38 Paper_def::~Paper_def()
42 Paper_def::Paper_def(Paper_def 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 Paper_def::set(Lookup*l)
54 assert(l != lookup_p_);
60 Paper_def::interline() const
62 return lookup_p_->ball(4).dim.y.length();
66 Paper_def::internote() const
68 return lookup_p_->internote();
71 Paper_def::note_width()const
73 return lookup_p_->ball(4).dim.x.length( );
76 Paper_def::standard_height() const
82 Paper_def::print() const
85 mtor << "Paper {width: " << print_dimen(linewidth);
86 mtor << "whole: " << print_dimen(whole_width);
87 mtor << "out: " <<outfile;