]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/figured-bass-engraver.cc
* Documentation/user/changing-defaults.itely (Changing defaults):
[lilypond.git] / lily / figured-bass-engraver.cc
index c792ac795c7abd8a695ed02e44706028c18f3991..aeb5c1e1fe3b8a65bacf6356fdd4bef96e5c642d 100644 (file)
@@ -3,7 +3,7 @@ figured-bass-engraver.cc --  implement Figured_bass_engraver
 
 source file of the GNU LilyPond music typesetter
 
-(c)  2002--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+(c) 2002--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 
  */
 
@@ -11,7 +11,7 @@ source file of the GNU LilyPond music typesetter
 #include "text-item.hh"
 #include "event.hh"
 #include "item.hh"
-#include "translator-group.hh"
+#include "context.hh"
 
 class Figured_bass_engraver : public Engraver
 {
@@ -68,9 +68,9 @@ Figured_bass_engraver::process_music ()
 {
   if (rest_req_)
     {
-      figure_ = new Item (get_property ("BassFigure"));
+      figure_ = make_item ("BassFigure");
       announce_grob(figure_, rest_req_->self_scm()); // todo
-      figure_->set_grob_property ("text" , scm_makfrom0str ("-"));
+      figure_->set_property ("text" , scm_makfrom0str ("-"));
     }
   else if (figures_.size ())
     {
@@ -82,10 +82,10 @@ Figured_bass_engraver::process_music ()
          for (int i = 0; i <figures_.size (); i++)
            l = gh_cons (figures_[i]->self_scm(), l);
 
-         SCM markup = scm_call_2 (proc, l, daddy_trans_->self_scm ());
+         SCM markup = scm_call_2 (proc, l, daddy_context_->self_scm ());
 
-         figure_ = new Item (get_property ("BassFigure"));
-         figure_->set_grob_property ("text", markup);
+         figure_ = make_item ("BassFigure");
+         figure_->set_property ("text", markup);
          announce_grob(figure_, figures_[0]->self_scm()); // todo
        }
     }