]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-name-engraver.cc
2003 -> 2004
[lilypond.git] / lily / note-name-engraver.cc
index 7b0cf44407c27e9f30a1817f0cc265fa6743f1f9..47562e6e2c5b156a441c34626b28ceaf23487d11 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
@@ -44,11 +44,11 @@ Note_name_engraver::process_acknowledged_grobs ()
     {
       if (i)
        s += " ";
-      s += unsmob_pitch (reqs_[i]->get_mus_property ("pitch"))->string ();
+      s += unsmob_pitch (reqs_[i]->get_mus_property ("pitch"))->to_string ();
     }
   if (s.length ())
     {
-      Item * t = new Item (get_property ("NoteName"));
+      Item * t = make_item ("NoteName");
       t->set_grob_property ("text", scm_makfrom0str (s.to_str0 ()));
       announce_grob(t, reqs_[0]->self_scm());
       texts_.push (t);