]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-heads-engraver.cc
* lily/score.cc (default_rendering): clean protection.
[lilypond.git] / lily / note-heads-engraver.cc
index 6a10e3e4c8907b52a7618477413d66b1afc37d0d..e1fdc813c7c7d2bbb3848dbf405b405b24d9164f 100644 (file)
@@ -22,7 +22,7 @@ class Note_heads_engraver : public Engraver
   Link_array<Music> note_reqs_;
 
 public:
-  TRANSLATOR_DECLARATIONS(Note_heads_engraver);
+  TRANSLATOR_DECLARATIONS (Note_heads_engraver);
 
 protected:
   virtual bool try_music (Music *req) ;
@@ -31,7 +31,7 @@ protected:
   virtual void stop_translation_timestep ();
 };
 
-Note_heads_engraver::Note_heads_engraver()
+Note_heads_engraver::Note_heads_engraver ()
 {
 }
 
@@ -61,32 +61,32 @@ Note_heads_engraver::process_music ()
 
       Music * req = note_reqs_[i];
       
-      Duration dur = *unsmob_duration (req->get_mus_property ("duration"));
+      Duration dur = *unsmob_duration (req->get_property ("duration"));
 
-      note->set_grob_property ("duration-log", gh_int2scm (dur.duration_log ()));
+      note->set_property ("duration-log", gh_int2scm (dur.duration_log ()));
       if (dur.dot_count ())
        {
          Item * d = make_item ("Dots");
          Rhythmic_head::set_dots (note, d);
          
          if (dur.dot_count ()
-             != robust_scm2int (d->get_grob_property ("dot-count"), 0))
-           d->set_grob_property ("dot-count", gh_int2scm (dur.dot_count ()));
+             != robust_scm2int (d->get_property ("dot-count"), 0))
+           d->set_property ("dot-count", gh_int2scm (dur.dot_count ()));
 
          d->set_parent (note, Y_AXIS);
          announce_grob (d, SCM_EOL);
          dots_.push (d);
        }
 
-      Pitch *pit =unsmob_pitch (req->get_mus_property ("pitch"));
+      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);
 
-      note->set_grob_property ("staff-position",   gh_int2scm (pos));
-      announce_grob (note,req->self_scm());
+      note->set_property ("staff-position",   gh_int2scm (pos));
+      announce_grob (note,req->self_scm ());
       notes_.push (note);
     }
 }
@@ -110,7 +110,7 @@ Note_heads_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Note_heads_engraver,
+ENTER_DESCRIPTION (Note_heads_engraver,
 /* descr */       "Generate noteheads.",
 /* creats*/       "NoteHead Dots",
 /* accepts */     "note-event busy-playing-event",