X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdynamic-performer.cc;h=d96545af9589e36371143777af6aa35d9ff616f4;hb=93b7a6ff072d73dcdd41da59cd18da8aa8d8e8cb;hp=fc85166f727718139fd783bd0ca950d2848c6f82;hpb=87eedcd59f4082cb0841528ad5bc82cb1d1191e3;p=lilypond.git diff --git a/lily/dynamic-performer.cc b/lily/dynamic-performer.cc index fc85166f72..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" @@ -100,7 +111,7 @@ Dynamic_performer::process_music () if (span_events_[START]) { - span_dynamic_ = new Audio_span_dynamic(); + span_dynamic_ = new Audio_span_dynamic (); announce_element (Audio_element_info (span_dynamic_, span_events_[START])); span_dynamic_->grow_dir_ = grow_dir_[START]; @@ -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 */ + "" + );