]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3945: fix (De)crescendo with unspecified starting volume in MIDI
authorDan Eble <nine.fierce.ballads@gmail.com>
Sat, 4 Jun 2016 19:25:13 +0000 (15:25 -0400)
committerDan Eble <nine.fierce.ballads@gmail.com>
Mon, 13 Jun 2016 21:57:38 +0000 (17:57 -0400)
input/regression/midi/dynamic-initial.ly [new file with mode: 0644]
input/regression/typography-demo.ly
lily/dynamic-performer.cc

diff --git a/input/regression/midi/dynamic-initial.ly b/input/regression/midi/dynamic-initial.ly
new file mode 100644 (file)
index 0000000..fca7c8a
--- /dev/null
@@ -0,0 +1,15 @@
+\version "2.19.44"
+
+\header {
+  texidoc="The MIDI performer uses a default initial dynamic"
+}
+
+\score {
+   { c\< c\f }
+   \midi {}
+}
+
+\score {
+   { c c\< c\f }
+   \midi {}
+}
index c915c7fe52663c261f887c70b481cd2270ea53b0..836088123b03568e301c537489e0fb4e32a76388 100644 (file)
@@ -9,7 +9,6 @@ heavily mutilated Edition Peters Morgenlied by Schubert"
 }
 
 \version "2.19.21"
-#(ly:expect-warning (_ "(De)crescendo with unspecified starting volume in MIDI."))
 
 ignoreMelisma =        \set ignoreMelismata = ##t
 ignoreMelismaOff = \unset ignoreMelismata 
index 46a8a446d35af8c3a32e949c34f59ed962e520c1..b24b7a6305a996878c37bd7c352ae9c8ddcfdf89 100644 (file)
@@ -120,16 +120,6 @@ Dynamic_performer::process_music ()
       announce_element (Audio_element_info (span_dynamic_, span_events_[START]));
 
       span_dynamic_->grow_dir_ = grow_dir_[START];
-
-      if (!last_volume_initialized_ && !script_event_)
-        {
-          // No explicit dynamic script events have occurred yet, but there is
-          // nevertheless a dynamic spanner.  Initialize last_volume_ to a
-          // value within the available range.
-          span_events_[START]->origin ()->warning (_ ("(De)crescendo with unspecified starting volume in MIDI."));
-          last_volume_ = equalize_volume (0.5);
-          last_volume_initialized_ = true;
-        }
     }
 
   if (script_event_