X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-item.cc;h=63b6be6b1103447ae02772b3090e9f90d5839c37;hb=d3edd18b19979ac9947486af04a002a6118072ff;hp=b2f1231ae19559364e849f9e397be2f789df8a4b;hpb=a6a4b3fc2009f17a1a48cca0c11bfd3f38645937;p=lilypond.git diff --git a/lily/midi-item.cc b/lily/midi-item.cc index b2f1231ae1..63b6be6b11 100644 --- a/lily/midi-item.cc +++ b/lily/midi-item.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2008 Jan Nieuwenhuizen + (c) 1997--2009 Jan Nieuwenhuizen */ #include "midi-item.hh" @@ -169,7 +169,7 @@ Midi_time_signature::to_string () const Midi_note::Midi_note (Audio_note *a) { audio_ = a; - dynamic_byte_ = 0x7f; + dynamic_byte_ = 0x5a; } @@ -225,17 +225,14 @@ Midi_note_off::Midi_note_off (Midi_note *n) on_ = n; channel_ = n->channel_; - // Anybody who hears any difference, or knows how this works? - // 0 should definitely be avoided, notes stick on some sound cards. - // 64 is supposed to be neutral - - aftertouch_byte_ = 64; + // use note_on with velocity=0 instead of note_off + aftertouch_byte_ = 0; } string Midi_note_off::to_string () const { - Byte status_byte = (char) (0x80 + channel_); + Byte status_byte = (char) (0x90 + channel_); string str = ::to_string ((char)status_byte); str += ::to_string ((char) (get_semitone_pitch () + Midi_note::c0_pitch_));