]> git.donarmstrong.com Git - lilypond.git/blob - lily/score-context.cc
* lily/include/music-output.hh (process): Change signature to
[lilypond.git] / lily / score-context.cc
1 /*   
2         score-context.cc -- implement Score_context
3
4         source file of the GNU LilyPond music typesetter
5
6         (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "score-context.hh"
10 #include "score-translator.hh"
11
12 void
13 Score_context::prepare (Moment w)
14 {
15   Translator*  t = unsmob_translator (implementation_);
16   Score_translator * s = dynamic_cast<Score_translator *> (t);
17
18   s->prepare (w);
19 }
20
21 void
22 Score_context::finish ()
23 {
24   Translator*  t = unsmob_translator (implementation_);
25   Score_translator * s = dynamic_cast<Score_translator *> (t);
26
27   s->finish ();
28 }
29
30 void
31 Score_context::one_time_step ()
32 {
33   Translator*  t = unsmob_translator (implementation_);
34   Score_translator * s = dynamic_cast<Score_translator *> (t);
35   s->one_time_step ();
36 }
37
38 Music_output*
39 Score_context::get_output ()
40 {
41   Translator *t = unsmob_translator (implementation_);
42   Score_translator *s = dynamic_cast<Score_translator *> (t);
43   return s->get_output ();
44 }
45