]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / drum-note-engraver.cc
index 5adc23d7ebf1a81d9debc91af82b2e70279acf39..0c9bab76bcf194d9859964ff99b122e6d4257a67 100644 (file)
@@ -1,12 +1,13 @@
 /*
   drum-note-engraver.cc
 
-  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include <cctype>
 using namespace std;
 
+#include "item.hh"
 #include "duration.hh"
 #include "engraver.hh"
 #include "note-column.hh"
@@ -22,7 +23,6 @@ using namespace std;
 class Drum_notes_engraver : public Engraver
 {
   vector<Item*> notes_;
-  vector<Item*> dots_;
   vector<Item*> scripts_;
   vector<Stream_event*> events_;
 
@@ -60,24 +60,6 @@ Drum_notes_engraver::process_music ()
       Stream_event *ev = events_[i];
       Item *note = make_item ("NoteHead", ev->self_scm ());
 
-      Duration dur = *unsmob_duration (ev->get_property ("duration"));
-
-      note->set_property ("duration-log", scm_from_int (dur.duration_log ()));
-
-      if (dur.dot_count ())
-       {
-         Item *d = make_item ("Dots", ev->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", scm_from_int (dur.dot_count ()));
-
-         d->set_parent (note, Y_AXIS);
-
-         dots_.push_back (d);
-       }
-
       SCM drum_type = ev->get_property ("drum-type");
 
       SCM defn = SCM_EOL;
@@ -143,7 +125,6 @@ void
 Drum_notes_engraver::stop_translation_timestep ()
 {
   notes_.clear ();
-  dots_.clear ();
   scripts_.clear ();
 
   events_.clear ();
@@ -151,10 +132,20 @@ Drum_notes_engraver::stop_translation_timestep ()
 
 ADD_ACKNOWLEDGER (Drum_notes_engraver, stem);
 ADD_ACKNOWLEDGER (Drum_notes_engraver, note_column);
+
+
 ADD_TRANSLATOR (Drum_notes_engraver,
-               /* doc */ "Generate noteheads.",
-               /* create */ "NoteHead Dots Script",
-               /* accept */ "note-event",
-               /* read */ "drumStyleTable",
-               /* write */ "");
+               /* doc */
+               "Generate drum note heads.",
+
+               /* create */
+               "NoteHead "
+               "Script ",
+
+               /* read */
+               "drumStyleTable ",
+
+               /* write */
+               ""
+               );