]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-engraver.cc
Fix off-by-one error in constrained-breaking.
[lilypond.git] / lily / drum-note-engraver.cc
index 5adc23d7ebf1a81d9debc91af82b2e70279acf39..fc1b77a0342870c520b767f1325f1d53a546f3ce 100644 (file)
@@ -7,6 +7,7 @@
 #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 ();
@@ -153,8 +134,9 @@ 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",
+               /* create */
+               "NoteHead "
+               "Script",
                /* read */ "drumStyleTable",
                /* write */ "");