lilypond-0.0.32
[lilypond.git] / src / scores.cc
blob59b6f6670deba01704e125f9336879341c479984
1 #include "main.hh"
2 #include "inputscore.hh"
3 #include "score.hh"
4 #include "string.hh"
6 static Array<Input_score*> score_array_global;
8 static String outfn="lelie.out";
10 // todo: check we don't overwrite default output.
11 void
12 do_scores()
14 for (int i=0; i < score_array_global.size(); i++) {
15 Score * s_p = score_array_global[i]->parse();
16 delete score_array_global[i];
17 s_p->print ();
18 s_p->process();
19 s_p->output(outfn);
20 delete s_p;
22 score_array_global.set_size(0);
25 void
26 add_score(Input_score * s)
28 score_array_global.push(s);
31 #if 0
32 Input_score*
33 current_iscore_l()
35 if ( score_array_global.size() )
36 return score_array_global.top(); // UGH
37 else
38 return 0;
40 #endif
42 void
43 set_default_output(String s)
45 outfn = s;