blob: 5150d5478aefef8914c41e7ac1b6cfcd84e41a64 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#include "request.hh"
#include "swalker.hh"
#include "debug.hh"
#include "staff.hh"
#include "command.hh"
#include "simplestaff.hh"
#include "sccol.hh"
Simple_column::Simple_column(Score_column*s, Simple_staff *rs)
: Staff_column(s)
{
stem_ = 0;
staff_ = rs;
beam_ = 0;
}
Simple_staff::Simple_staff()
{
theline = 0;
}
/**
accept:
BREAK: all
TYPESET: bar, meter,
*/
void
Simple_column::process_requests()
{
for (int i = 0 ; i < v_elts.sz(); i ++)
for (PCursor<Request *> rqc(v_elts[i]->reqs); rqc.ok(); rqc++) {
Request *rq= rqc;
if (rq->rhythmic()){
notes.add( rq->rhythmic());
}
if (rq->stem()) {
stem_ = rq->stem();
}
if (rq->beam()) {
beam_ = rq->beam();
}
}
}
Staff_column*
Simple_staff::create_col(Score_column*s)
{
return new Simple_column(s,this);
}
void
Simple_staff::walk()
{
for (Simple_walker sc(this); sc.ok(); sc++) {
sc.col()->process_requests();// TODO
sc.process();
}
}
|