lilypond-1.1.13
[lilypond.git] / src / scores.cc
bloba6df7ead96730c30376bb83a255abe3b11f17daf
1 #include "main.hh"
2 #include "input-score.hh"
3 #include "score.hh"
4 #include "string.hh"
5 #include "paper-def.hh"
6 #include "debug.hh"
8 static Array<Input_score*> score_array_global;
9 String default_out_fn = "lelie";
11 void
12 do_scores()
14 for (int i=0; i < score_array_global.size(); i++) {
15 Input_score* &is_p = score_array_global[i];
16 if (is_p->errorlevel_i_) {
17 warning("Score contains errors. Will not process it. ",
18 is_p->defined_ch_c_l_);
19 delete is_p;
20 continue;
23 if (only_midi) {
24 delete is_p->paper_p_;
25 is_p->paper_p_ = 0;
28 Score * s_p = is_p->parse();
29 delete is_p;
30 s_p->print ();
31 s_p->process();
32 delete s_p;
34 score_array_global.set_size(0);
37 void
38 add_score(Input_score * s)
40 score_array_global.push(s);
43 void
44 set_default_output(String s)
46 default_out_fn = s;