]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/audio-item.cc
Midi: Use span dynamics render results for note velocities. Fixes #1586.
[lilypond.git] / lily / audio-item.cc
index e33437f631fdcc0ce6bd695a177e530d66018766..76a3923848b5d853cca02f41c6417f24b368b0a4 100644 (file)
@@ -45,13 +45,13 @@ Audio_item::Audio_item ()
 }
 
 Audio_note::Audio_note (Pitch p, Moment m, bool tie_event, Pitch transposing)
+  : pitch_ (p)
+  , length_mom_ (m)
+  , transposing_ (transposing)
+  , dynamic_ (0)
+  , tied_ (0)
+  , tie_event_ (tie_event)
 {
-  pitch_ = p;
-  length_mom_ = m;
-  tied_ = 0;
-  transposing_ = transposing;
-  tie_event_ = tie_event;
-  volume_ = 0;
 }
 
 void
@@ -74,8 +74,9 @@ Audio_key::Audio_key (int acc, bool major)
 }
 
 Audio_dynamic::Audio_dynamic ()
+  : volume_ (-1)
+  , silent_ (false)
 {
-  volume_ = -1;
 }
 
 Audio_span_dynamic::Audio_span_dynamic ()