summaryrefslogtreecommitdiff
path: root/paper.hh
blob: ffe4f795a86d83cf7ff173d3b33b119fcbfac31e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "proto.hh"
#include "real.hh"
#include "string.hh"

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 standard_height()const;
    Real note_width() const;
    void print() const;
    Real duration_to_dist(Real);
};