diff options
Diffstat (limited to 'hdr/paper.hh')
-rw-r--r-- | hdr/paper.hh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/hdr/paper.hh b/hdr/paper.hh new file mode 100644 index 0000000000..84932a36ab --- /dev/null +++ b/hdr/paper.hh @@ -0,0 +1,33 @@ +#include "proto.hh" +#include "real.hh" +#include "string.hh" + +/// symbols, dimensions and constants +struct Paperdef { + Lookup *lookup_; + String outfile; + Real linewidth; + + /// how much space does a whole note take (ideally?) + Real whole_width; + + /// ideal = geometric_ ^ log2(duration) + Real geometric_; + + /****************/ + void parse(); + Paperdef(); + ~Paperdef(); + Real interline()const; + Real rule_thickness()const; + Real standard_height()const; + Real note_width() const; + void print() const; + Real duration_to_dist(Real); +}; +/** This struct takes care of all kinds of symbols, dimensions and + constants. Most of them are related to the point-size of the fonts, + so therefore, the lookup table for symbols is also in here. + + see TODO + */ |