Re: [AD] MIDI player missing sustain

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> if you want to add it, try just passing every MIDI command which
> gets read in in process_midi_event directly to the raw_midi driver.

Thanks for that, it works. Could we add this as a patch into allegro,
because I can't see it breaking anything:

midi.c, line 688 (end of process_controller):
          break;
+      default:
+        if (midi_driver->raw_midi) {
+         midi_driver->raw_midi(0xB0+channel);
+         midi_driver->raw_midi(ctrl);
+         midi_driver->raw_midi(data);
+        }
    }

and it means that allegro supports the full range of controller events such
as sustain and so forth.

cheers,
Chris






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/