2 paper-def.hh -- declare Paper_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
12 #include "lily-proto.hh"
20 symbols, dimensions and constants
22 This struct takes care of all kinds of symbols, dimensions and
23 constants. Most of them are related to the point-size of the fonts,
24 so therefore, the lookup table for symbols is also in here.
28 add support for multiple fontsizes
29 split into "Input_paper_def" and Paper_def
30 add support for other len->wid conversions.
40 /// how much space does a whole note take (ideally?)
43 /// ideal = geometric_ ^ log2(duration)
51 Paper_def(Paper_def const&);
52 /// The distance between beams
53 Real interbeam_f()const;
55 The distance between lines
57 Real interline_f()const;
58 /// half the distance between lines
59 Real internote_f()const;
61 /// thickness of the standard line
62 Real rule_thickness()const;
64 /// height of the staff
65 Real standard_height()const;
67 /// width of a quaver ball
68 Real note_width() const;
70 Lookup const * lookup_l(); // TODO naming
72 /** convert a duration to an idealspacing
73 influence using the geometric_ and whole_width parameters.
75 Real duration_to_dist(Moment);
78 #endif // Paper_def_HH