]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-item.cc
patch::: 1.3.36.jcn4
[lilypond.git] / lily / midi-item.cc
index b822a6655e51eb3fe97f2f242aee6596036945fb..730a8658fb59cd8ae3434ade2e1d2818ee676002 100644 (file)
@@ -476,8 +476,11 @@ Midi_dynamic::str () const
     07 MSB
     27 LSB
    */
+  static Real const full_scale = 127;
+
   str += to_str ((char)0x07);
-  str += to_str ((char)audio_l_->volume_i_);
+  int volume = (int)(audio_l_->volume_*full_scale);
+  str += to_str ((char)volume);
   return str;
 }