2 input-score.cc -- implement Input_score
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "input-score.hh"
11 #include "input-staff.hh"
12 #include "input-music.hh"
14 #include "paper-def.hh"
15 #include "midi-def.hh"
20 Input_score::add(Input_staff
*s
)
22 staffs_
.bottom().add(s
);
26 Input_score::set(Paper_def
*p
)
33 Input_score::set(Midi_def
* midi_p
)
39 Input_score::Input_score(Input_score
const&s
)
42 paper_p_
= (s
.paper_p_
)? new Paper_def(*s
.paper_p_
) :0;
43 midi_p_
= (s
.midi_p_
)? new Midi_def(*s
.midi_p_
) : 0;
44 errorlevel_i_
= s
.errorlevel_i_
;
50 Score
*s_p
= new Score
;
52 s_p
->errorlevel_i_
= errorlevel_i_
;
54 s_p
->set(new Midi_def(*midi_p_
));
56 s_p
->set(new Paper_def(*paper_p_
));
58 for (iter_top(staffs_
,i
); i
.ok(); i
++) {
59 Staff
* staf_p
=i
->parse(s_p
);
67 Input_score::~Input_score()
73 Input_score::Input_score()
81 Input_score::print()const
84 mtor
<< "Input_score {\n";
85 for (iter_top(staffs_
,i
); i
.ok(); i
++) {