Attached is a fairly simple patch that scratches my particular itch.
It allows for setting a callback function on the fluid_player instance
when it is created, which is called as each midi event is passed to
the synth in fluid_track_send_events(...).

Thoughts?

On Wed, May 4, 2011 at 2:28 AM, David Henningsson <di...@ubuntu.com> wrote:
> On 2011-04-26 21:43, Jason Vasquez wrote:
....snip....
>> Is there a way to insert a handler for events generated from  MIDI
>> file playback?  (For bonus points, I'd love to insert a bit of
>> userdata in that callback :))
>
> Hi Jason,
>
> I don't think that's currently possible. It shouldn't be too hard to
> implement though and sounds like a reasonable feature. (That doesn't mean I
> have the time to do it anytime soon...)
>
> // David
>

Attachment: patch-fluidsynth-midi_file_event_callbacks.patch
Description: Binary data

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

Reply via email to