X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-item.cc;h=63b6be6b1103447ae02772b3090e9f90d5839c37;hb=646a2265ea72c4007d9590a5d6d9a10ffc54ef29;hp=b6838215f5c421c80936fec689a23fa93f660c5c;hpb=a9d9433bc7b95cb2d4b3d96eefce7a8437c0d44e;p=lilypond.git diff --git a/lily/midi-item.cc b/lily/midi-item.cc index b6838215f5..63b6be6b11 100644 --- a/lily/midi-item.cc +++ b/lily/midi-item.cc @@ -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_));