X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdrum-note-engraver.cc;h=c01736ea22593bd76949e6cdd56ced262d27476b;hb=a8d54f44df1fe4f89823f6b78364870ce51174dc;hp=1db3e611f9c2f447a24e500fce59be412331b9a3;hpb=474c8729dc274a30558102a015a01fa5882673db;p=lilypond.git diff --git a/lily/drum-note-engraver.cc b/lily/drum-note-engraver.cc index 1db3e611f9..c01736ea22 100644 --- a/lily/drum-note-engraver.cc +++ b/lily/drum-note-engraver.cc @@ -1,7 +1,20 @@ /* - drum-note-engraver.cc + This file is part of LilyPond, the GNU music typesetter. - (c) 1997--2007 Han-Wen Nienhuys + Copyright (C) 1997--2010 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 @@ -22,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); @@ -89,8 +101,6 @@ Drum_notes_engraver::process_music () scripts_.push_back (p); } } - - notes_.push_back (note); } } @@ -124,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", - /* read */ "drumStyleTable", - /* write */ ""); + "Script ", + + /* read */ + "drumStyleTable ", + /* write */ + "" + );