]> git.donarmstrong.com Git - lilypond.git/commitdiff
MIDI: always set note volume when initialized. Fixes #1636.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 26 Apr 2011 07:33:10 +0000 (09:33 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 26 Apr 2011 07:35:31 +0000 (09:35 +0200)
Documentation/changes.tely
lily/midi-item.cc

index 4a70d0cab3279f3bfa91c3a37279b7351fdade13..b9297e7ec136ba50343797000a4c564d157b97e0 100644 (file)
@@ -120,7 +120,6 @@ MIDI output has been improved
 @item optimal channel distribution: identical instruments share the same channel.  This means that e.g. for a full orchestral score there are always 16 (15 plus percussion) diffently sounding instruments available, unrestricted by the number of staves or voices.
 @item @code{\set Score.midiChannelMapping = #'staff} assigns one MIDI channel per staff, previously the default behavior.  This setting is required if you want instrument changes to create MIDI program changes on a single MIDI channel.
 @item dynamics are now rendered as note velocities, no longer as midi volume.  This improves the sound on [high end] midi renderers.
-@item @code{midiMaximumVolume = #0.0} no longer silences a channel; use @code{0.01} instead.
 @end itemize
 
 @item
index a04553508fc660314c5d9a7452af6501ae0189b8..1fcb259ae13c2c0b6b0ee94967476cd8099f3928 100644 (file)
@@ -181,7 +181,7 @@ Midi_time_signature::to_string () const
 Midi_note::Midi_note (Audio_note *a)
   : Midi_channel_item (a)
   , audio_ (a)
-  , dynamic_byte_ (a->dynamic_ && a->dynamic_->volume_ > 0
+  , dynamic_byte_ (a->dynamic_ && a->dynamic_->volume_ >= 0
                   ? Byte (a->dynamic_->volume_ * 0x7f) : Byte (0x5a))
 {
 }