blob: 9c22c277a1b6e2ed489d62f494fde368ee8d7d83 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
sccol.hh -- part of LilyPond
(c) 1996 Han-Wen Nienhuys
*/
#ifndef SCCOL_HH
#define SCCOL_HH
#include "pcol.hh"
#include "mtime.hh"
struct Score_column {
PCol * pcol;
svec<Mtime> durations;
Mtime when;
///
bool musical;
Score_column(Mtime when);
static int compare(Score_column & c1, Score_column &c2) {
return sgn(c1.when - c2.when);
}
void set_breakable() {
pcol->set_breakable();
}
bool used();
void print() const;
};
/**
When typesetting hasn't started on PScore yet, the columns which
contain data have a rhythmical position. Score_column is the type
with a rhythmical time attached to it. The calculation of
idealspacing is done with data in these columns. (notably: the
#durations# field)
*/
instantiate_compare(Score_column&, Score_column::compare);
#endif // SCCOL_HH
|