Skip to content

Best way to use FluidSynth with an external MIDI router #1072

Answered by derselbst
jimhen3ry asked this question in Q&A
Discussion options

You must be logged in to vote

Up to this point, the Miditzer has collected real time MIDI inputs, mouse input, computer keyboard input, and FluidSynth MIDI player input and merged them. [...]
The next question is can we use FluidSynth to receive real time MIDI input

Ok, so you would use fluid_player_set_playback_callback() to intercept MIDI events coming from the player. And optionally, you could use new_fluid_midi_driver() to intercept MIDI events collected by fluidsynth coming from real-time devices. Miditzer would then receive a bunch of fluid_midi_event_t. Note that those are real-time event, i.e. they don't have a timestamp, because they are valid for the time you're receiving the callback, and you should also …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jimhen3ry
Comment options

@derselbst
Comment options

Answer selected by jimhen3ry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants