X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdrum-note-engraver.cc;h=605876ef6081448b2c21d11196c31099bff1b571;hb=0996f6663b2635491b5efa385e0e3a581fb96292;hp=1309f448d3c18cc7e806f0c6b4d3df3e709021c4;hpb=0e5d83a9ceb4a143f83d22406d7eb816314ff9f7;p=lilypond.git diff --git a/lily/drum-note-engraver.cc b/lily/drum-note-engraver.cc index 1309f448d3..605876ef60 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--2009 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 @@ -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,16 +134,13 @@ 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 drum note heads.", @@ -148,4 +155,3 @@ ADD_TRANSLATOR (Drum_notes_engraver, /* write */ "" ); -