X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fglissando-engraver.cc;h=99eb6bc515b2aa5675483de2d498c5f0792a556e;hb=7b3a9b122d7ef1eb70fdabaac466b7b0c23a1df2;hp=6368e05a09554f9549c501431ae6e9f4eed873ee;hpb=cc676c5aadd45985251b5d60fa23eed1ed98f6e6;p=lilypond.git diff --git a/lily/glissando-engraver.cc b/lily/glissando-engraver.cc index 6368e05a09..99eb6bc515 100644 --- a/lily/glissando-engraver.cc +++ b/lily/glissando-engraver.cc @@ -1,24 +1,33 @@ /* - note-head-line-engraver.cc -- implement Note_head_line_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2000--2011 Jan Nieuwenhuizen - (c) 2000--2006 Jan Nieuwenhuizen + 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 "engraver.hh" + #include "international.hh" #include "rhythmic-head.hh" #include "spanner.hh" #include "stream-event.hh" #include "warn.hh" +#include "item.hh" #include "translator.icc" -/** - Create line-spanner grobs for glissandi lines that connect note - heads. -*/ class Glissando_engraver : public Engraver { public: @@ -65,14 +74,19 @@ Glissando_engraver::acknowledge_rhythmic_head (Grob_info info) line_->set_bound (LEFT, g); if (last_line_) - last_line_->set_bound (RIGHT, g); + { + last_line_->set_bound (RIGHT, g); + announce_end_grob (last_line_, g->self_scm ()); + } } void Glissando_engraver::stop_translation_timestep () { if (last_line_ && last_line_->get_bound (RIGHT)) - last_line_ = 0; + { + last_line_ = 0; + } if (line_) { if (last_line_) @@ -102,8 +116,15 @@ Glissando_engraver::finalize () ADD_ACKNOWLEDGER (Glissando_engraver, rhythmic_head); ADD_TRANSLATOR (Glissando_engraver, - /* doc */ "Engrave a glissandi", - /* create */ "Glissando", - /* accept */ "glissando-event", - /* read */ "followVoice", - /* write */ ""); + /* doc */ + "Engrave glissandi.", + + /* create */ + "Glissando ", + + /* read */ + "", + + /* write */ + "" + );