Nitpick: ly:spanner-bound grob name slur -> spanner.
[lilypond.git] / lily / apply-context-iterator.cc
blob7874509da21a69aeca96a8043a894ca87c6cf1d5
1 /*
2 apply-context-iterator.cc -- implement Apply_context_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "context.hh"
10 #include "input.hh"
11 #include "international.hh"
12 #include "music.hh"
13 #include "simple-music-iterator.hh"
15 class Apply_context_iterator : public Simple_music_iterator
17 public:
18 DECLARE_SCHEME_CALLBACK (constructor, ());
19 protected:
20 virtual void process (Moment);
23 void
24 Apply_context_iterator::process (Moment m)
26 SCM proc = get_music ()->get_property ("procedure");
28 if (ly_is_procedure (proc))
29 scm_call_1 (proc, get_outlet ()->self_scm ());
30 else
31 get_music ()->origin ()->warning (_ ("\\applycontext argument is not a procedure"));
33 Simple_music_iterator::process (m);
36 IMPLEMENT_CTOR_CALLBACK (Apply_context_iterator);