|
From: | Christopher Leger |
Subject: | Re: [fluid-dev] Intercepting midi events |
Date: | Sat, 19 May 2018 16:48:22 -0400 |
For intercepting events from the midi player, use fluid_player_set_playback_callback() to register your custom processing function of type handle_midi_event_func_t.
For intercepting events from the midi driver (your keyboard), create the midi driver with new_fluid_midi_driver() and pass a processing function of type handle_midi_event_func_t as well.
http://www.fluidsynth.org/api/index.html#RealtimeMIDI
Once you're done processing events in your custom function, you should call fluid_synth_handle_midi_event() to pass the event on to the synth.
Tom
[Prev in Thread] | Current Thread | [Next in Thread] |