]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-heads-engraver.cc
remove ly_scm2str0.
[lilypond.git] / lily / note-heads-engraver.cc
index e1fdc813c7c7d2bbb3848dbf405b405b24d9164f..7898b85ec39407dfe06f64f7af8f093214fc2edc 100644 (file)
@@ -6,7 +6,7 @@
 #include <ctype.h>
 
 #include "rhythmic-head.hh"
-#include "paper-def.hh"
+#include "output-def.hh"
 #include "event.hh"
 #include "dots.hh"
 #include "dot-column.hh"
@@ -57,36 +57,35 @@ Note_heads_engraver::process_music ()
 {
   for (int i=0; i < note_reqs_.size (); i++)
     {
-      Item *note = make_item ("NoteHead");
 
       Music * req = note_reqs_[i];
+      Item *note = make_item ("NoteHead", req->self_scm ());
       
       Duration dur = *unsmob_duration (req->get_property ("duration"));
 
-      note->set_property ("duration-log", gh_int2scm (dur.duration_log ()));
+      note->set_property ("duration-log", scm_int2num (dur.duration_log ()));
       if (dur.dot_count ())
        {
-         Item * d = make_item ("Dots");
+         Item * d = make_item ("Dots", note->self_scm ());
          Rhythmic_head::set_dots (note, d);
          
          if (dur.dot_count ()
              != robust_scm2int (d->get_property ("dot-count"), 0))
-           d->set_property ("dot-count", gh_int2scm (dur.dot_count ()));
+           d->set_property ("dot-count", scm_int2num (dur.dot_count ()));
 
          d->set_parent (note, Y_AXIS);
-         announce_grob (d, SCM_EOL);
+         
          dots_.push (d);
        }
 
       Pitch *pit =unsmob_pitch (req->get_property ("pitch"));
 
       int pos = pit ? pit->steps () : 0;
-      SCM c0 = get_property ("centralCPosition");
-      if (gh_number_p (c0))
-       pos += gh_scm2int (c0);
+      SCM c0 = get_property ("middleCPosition");
+      if (ly_c_number_p (c0))
+       pos += ly_scm2int (c0);
 
-      note->set_property ("staff-position",   gh_int2scm (pos));
-      announce_grob (note,req->self_scm ());
+      note->set_property ("staff-position",   scm_int2num (pos));
       notes_.push (note);
     }
 }
@@ -94,16 +93,8 @@ Note_heads_engraver::process_music ()
 void
 Note_heads_engraver::stop_translation_timestep ()
 {
-  for (int i=0; i < notes_.size (); i++)
-    {
-      typeset_grob (notes_[i]);
-    }
 
   notes_.clear ();
-  for (int i=0; i < dots_.size (); i++)
-    {
-      typeset_grob (dots_[i]);
-    }
   dots_.clear ();
   note_reqs_.clear ();
 }
@@ -115,5 +106,5 @@ ENTER_DESCRIPTION (Note_heads_engraver,
 /* creats*/       "NoteHead Dots",
 /* accepts */     "note-event busy-playing-event",
 /* acks  */      "",
-/* reads */       "centralCPosition",
+/* reads */       "middleCPosition",
 /* write */       "");