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


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to