X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdrum-note-engraver.cc;h=605876ef6081448b2c21d11196c31099bff1b571;hb=cf3642858a2340bb39ee56739f34c799946d4454;hp=c9dd52b8e6220bf41f8a21909d685c258769cae4;hpb=bd78c003160e138bc3118ee8ede5929d6011d58e;p=lilypond.git diff --git a/lily/drum-note-engraver.cc b/lily/drum-note-engraver.cc index c9dd52b8e6..605876ef60 100644 --- a/lily/drum-note-engraver.cc +++ b/lily/drum-note-engraver.cc @@ -1,12 +1,26 @@ /* - drum-note-engraver.cc + This file is part of LilyPond, the GNU music typesetter. - (c) 1997--2006 Han-Wen Nienhuys + Copyright (C) 1997--2011 Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include using namespace std; +#include "item.hh" #include "duration.hh" #include "engraver.hh" #include "note-column.hh" @@ -21,9 +35,8 @@ using namespace std; class Drum_notes_engraver : public Engraver { - vector notes_; - vector scripts_; - vector events_; + vector scripts_; + vector events_; public: TRANSLATOR_DECLARATIONS (Drum_notes_engraver); @@ -88,8 +101,6 @@ Drum_notes_engraver::process_music () scripts_.push_back (p); } } - - notes_.push_back (note); } } @@ -123,21 +134,24 @@ Drum_notes_engraver::acknowledge_note_column (Grob_info inf) void Drum_notes_engraver::stop_translation_timestep () { - notes_.clear (); scripts_.clear (); - events_.clear (); } ADD_ACKNOWLEDGER (Drum_notes_engraver, stem); ADD_ACKNOWLEDGER (Drum_notes_engraver, note_column); + ADD_TRANSLATOR (Drum_notes_engraver, - /* doc */ "Generate noteheads.", + /* doc */ + "Generate drum note heads.", + /* create */ "NoteHead " - "Script", + "Script ", - /* accept */ "note-event", - /* read */ "drumStyleTable", - /* write */ ""); + /* read */ + "drumStyleTable ", + /* write */ + "" + );