X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdynamic-performer.cc;h=d96545af9589e36371143777af6aa35d9ff616f4;hb=7c847987a895e4db6a32f5fb4f280dc4a967dc19;hp=47abca1ead515d9d363639d3cb2f005cb0e8daf7;hpb=3f8485925e8c879fe4c9ae86acef9804126c3b91;p=lilypond.git diff --git a/lily/dynamic-performer.cc b/lily/dynamic-performer.cc index 47abca1ead..d96545af95 100644 --- a/lily/dynamic-performer.cc +++ b/lily/dynamic-performer.cc @@ -1,9 +1,20 @@ /* - dynamic-performer.cc -- implement Dynamic_performer + 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--2007 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 "performer.hh" @@ -133,7 +144,6 @@ Dynamic_performer::process_music () announce_element (info); } - if (span_dynamic_) span_dynamic_->add_absolute (absolute_); @@ -149,7 +159,6 @@ Dynamic_performer::stop_translation_timestep () finished_span_dynamic_->render (); finished_span_dynamic_ = 0; } - if (absolute_ && absolute_->volume_ < 0) { @@ -193,14 +202,19 @@ Dynamic_performer::listen_absolute_dynamic (Stream_event *r) } ADD_TRANSLATOR (Dynamic_performer, - /* doc */ "", - /* create */ "", + /* doc */ + "", + + /* create */ + "", /* read */ "dynamicAbsoluteVolumeFunction " "instrumentEqualizer " "midiMaximumVolume " "midiMinimumVolume " - "midiInstrument " - , - /*writes*/""); + "midiInstrument ", + + /* write */ + "" + );