X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftrill-spanner-engraver.cc;h=eb36aff7e6d465c6040f0ad9f2fea6f1fd8a1004;hb=9d81de1232c3106d8a02b49ad4006f2ce9a4b82d;hp=94554b790bf1eb90648e17a217bf128f69dc2d3b;hpb=1d6225cfe11ea59fe84ee6a29b5735b0798c5ec6;p=lilypond.git diff --git a/lily/trill-spanner-engraver.cc b/lily/trill-spanner-engraver.cc index 94554b790b..eb36aff7e6 100644 --- a/lily/trill-spanner-engraver.cc +++ b/lily/trill-spanner-engraver.cc @@ -1,9 +1,20 @@ /* - trill-spanner-engraver.cc -- implement Trill_spanner_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2000--2015 Jan Nieuwenhuizen - (c) 2000--2009 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 . */ /* @@ -66,17 +77,17 @@ Trill_spanner_engraver::acknowledge_note_column (Grob_info info) if (span_) { Pointer_group_interface::add_grob (span_, - ly_symbol2scm ("note-columns"), - info.grob()); + ly_symbol2scm ("note-columns"), + info.grob ()); if (!span_->get_bound (LEFT)) - add_bound_item (span_, info.grob ()); + add_bound_item (span_, info.grob ()); } else if (finished_) { Pointer_group_interface::add_grob (finished_, ly_symbol2scm ("note-columns"), - info.grob()); + info.grob ()); if (!finished_->get_bound (RIGHT)) - add_bound_item (finished_, info.grob ()); + add_bound_item (finished_, info.grob ()); } } @@ -88,7 +99,7 @@ Trill_spanner_engraver::process_music () { Stream_event *ender = event_drul_[STOP]; if (!ender) - ender = event_drul_[START]; + ender = event_drul_[START]; finished_ = span_; announce_end_grob (finished_, ender->self_scm ()); span_ = 0; @@ -109,10 +120,10 @@ Trill_spanner_engraver::typeset_all () if (finished_) { if (!finished_->get_bound (RIGHT)) - { - Grob *e = unsmob_grob (get_property ("currentMusicalColumn")); - finished_->set_bound (RIGHT, e); - } + { + Grob *e = unsmob (get_property ("currentMusicalColumn")); + finished_->set_bound (RIGHT, e); + } finished_ = 0; } } @@ -122,7 +133,7 @@ Trill_spanner_engraver::stop_translation_timestep () { if (span_ && !span_->get_bound (LEFT)) { - Grob *e = unsmob_grob (get_property ("currentMusicalColumn")); + Grob *e = unsmob (get_property ("currentMusicalColumn")); span_->set_bound (LEFT, e); } @@ -136,7 +147,7 @@ Trill_spanner_engraver::finalize () typeset_all (); if (span_) { - Grob *e = unsmob_grob (get_property ("currentCommandColumn")); + Grob *e = unsmob (get_property ("currentCommandColumn")); span_->set_bound (RIGHT, e); } } @@ -144,16 +155,16 @@ Trill_spanner_engraver::finalize () ADD_ACKNOWLEDGER (Trill_spanner_engraver, note_column); ADD_TRANSLATOR (Trill_spanner_engraver, - /* doc */ - "Create trill spanner from an event.", + /* doc */ + "Create trill spanner from an event.", - /* create */ - "TrillSpanner ", + /* create */ + "TrillSpanner ", - /* read */ - "currentCommandColumn " - "currentMusicalColumn ", + /* read */ + "currentCommandColumn " + "currentMusicalColumn ", - /* write */ - "" - ); + /* write */ + "" + );