]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dynamic-performer.cc
Midi: Use span dynamics render results for note velocities. Fixes #1586.
[lilypond.git] / lily / dynamic-performer.cc
index 9b8f366843404336f72ea36da38b1714f85c28f1..d96545af9589e36371143777af6aa35d9ff616f4 100644 (file)
@@ -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 <janneke@gnu.org>
 
-  (c) 2000--2007 Jan Nieuwenhuizen <janneke@gnu.org>
+  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 <http://www.gnu.org/licenses/>.
 */
 
 #include "performer.hh"
@@ -133,7 +144,6 @@ Dynamic_performer::process_music ()
       announce_element (info);
     }
 
-
   if (span_dynamic_)
     span_dynamic_->add_absolute (absolute_);
 
@@ -192,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 */
+               ""
+               );