libfluidsynth
2.1.1
|
Functions for binding sequencer objects to other subsystems. More...
Functions | |
FLUIDSYNTH_API fluid_seq_id_t | fluid_sequencer_register_fluidsynth (fluid_sequencer_t *seq, fluid_synth_t *synth) |
Registers a synthesizer as a destination client of the given sequencer. More... | |
FLUIDSYNTH_API int | fluid_sequencer_add_midi_event_to_buffer (void *data, fluid_midi_event_t *event) |
Transforms an incoming midi event (from a midi driver or midi router) to a sequencer event and adds it to the sequencer queue for sending as soon as possible. More... | |
Functions for binding sequencer objects to other subsystems.
FLUIDSYNTH_API fluid_seq_id_t fluid_sequencer_register_fluidsynth | ( | fluid_sequencer_t * | seq, |
fluid_synth_t * | synth | ||
) |
Registers a synthesizer as a destination client of the given sequencer.
The synth is registered with the name "fluidsynth".
seq | Sequencer instance |
synth | Synthesizer instance |
References FLUID_FAILED, FLUID_PANIC, fluid_sequencer_get_use_system_timer(), and fluid_sequencer_register_client().
FLUIDSYNTH_API int fluid_sequencer_add_midi_event_to_buffer | ( | void * | data, |
fluid_midi_event_t * | event | ||
) |
Transforms an incoming midi event (from a midi driver or midi router) to a sequencer event and adds it to the sequencer queue for sending as soon as possible.
The signature of this function is of type handle_midi_event_func_t.
data | The sequencer, must be a valid fluid_sequencer_t |
event | MIDI event |
References fluid_event_channel_pressure(), fluid_event_control_change(), fluid_event_key_pressure(), fluid_event_noteoff(), fluid_event_noteon(), fluid_event_pitch_bend(), fluid_event_program_change(), fluid_event_set_dest(), fluid_event_system_reset(), FLUID_FAILED, fluid_midi_event_get_channel(), fluid_midi_event_get_control(), fluid_midi_event_get_key(), fluid_midi_event_get_pitch(), fluid_midi_event_get_program(), fluid_midi_event_get_type(), fluid_midi_event_get_value(), fluid_midi_event_get_velocity(), and fluid_sequencer_send_at().