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