Main Page   Data Structures   File List   Data Fields   Globals  

midi.h File Reference

Go to the source code of this file.

Typedefs

typedef int(* handle_midi_event_func_t )(void *data, fluid_midi_event_t *event)

Functions

FLUIDSYNTH_API fluid_midi_event_tnew_fluid_midi_event (void)
FLUIDSYNTH_API int delete_fluid_midi_event (fluid_midi_event_t *event)
FLUIDSYNTH_API int fluid_midi_event_set_type (fluid_midi_event_t *evt, int type)
FLUIDSYNTH_API int fluid_midi_event_get_type (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_channel (fluid_midi_event_t *evt, int chan)
FLUIDSYNTH_API int fluid_midi_event_get_channel (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_get_key (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_key (fluid_midi_event_t *evt, int key)
FLUIDSYNTH_API int fluid_midi_event_get_velocity (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_velocity (fluid_midi_event_t *evt, int vel)
FLUIDSYNTH_API int fluid_midi_event_get_control (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_control (fluid_midi_event_t *evt, int ctrl)
FLUIDSYNTH_API int fluid_midi_event_get_value (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_value (fluid_midi_event_t *evt, int val)
FLUIDSYNTH_API int fluid_midi_event_get_program (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_program (fluid_midi_event_t *evt, int val)
FLUIDSYNTH_API int fluid_midi_event_get_pitch (fluid_midi_event_t *evt)
FLUIDSYNTH_API int fluid_midi_event_set_pitch (fluid_midi_event_t *evt, int val)
FLUIDSYNTH_API fluid_midi_router_tnew_fluid_midi_router (fluid_settings_t *settings, handle_midi_event_func_t handler, void *event_handler_data)
 Create a new midi router. More...

FLUIDSYNTH_API int delete_fluid_midi_router (fluid_midi_router_t *handler)
 Delete the midi router. More...

FLUIDSYNTH_API int fluid_midi_router_handle_midi_event (void *data, fluid_midi_event_t *event)
 The standard handler function. More...

FLUIDSYNTH_API int fluid_midi_dump_prerouter (void *data, fluid_midi_event_t *event)
 An optional link in the MIDI chain to dump MIDI data between MIDI driver and router. More...

FLUIDSYNTH_API int fluid_midi_dump_postrouter (void *data, fluid_midi_event_t *event)
 An optional link in the MIDI chain to dump MIDI data between MIDI router and the synthesizer. More...

FLUIDSYNTH_API fluid_midi_driver_tnew_fluid_midi_driver (fluid_settings_t *settings, handle_midi_event_func_t handler, void *event_handler_data)
FLUIDSYNTH_API void delete_fluid_midi_driver (fluid_midi_driver_t *driver)
FLUIDSYNTH_API fluid_player_tnew_fluid_player (fluid_synth_t *synth)
FLUIDSYNTH_API int delete_fluid_player (fluid_player_t *player)
FLUIDSYNTH_API int fluid_player_add (fluid_player_t *player, char *midifile)
FLUIDSYNTH_API int fluid_player_play (fluid_player_t *player)
FLUIDSYNTH_API int fluid_player_stop (fluid_player_t *player)
FLUIDSYNTH_API int fluid_player_join (fluid_player_t *player)
FLUIDSYNTH_API int fluid_player_set_loop (fluid_player_t *player, int loop)
FLUIDSYNTH_API int fluid_player_set_midi_tempo (fluid_player_t *player, int tempo)
FLUIDSYNTH_API int fluid_player_set_bpm (fluid_player_t *player, int bpm)


Typedef Documentation

typedef int(* handle_midi_event_func_t)(void* data, fluid_midi_event_t* event)
 

Definition at line 58 of file midi.h.


Function Documentation

FLUIDSYNTH_API void delete_fluid_midi_driver fluid_midi_driver_t   driver
 

FLUIDSYNTH_API int delete_fluid_midi_event fluid_midi_event_t   event
 

FLUIDSYNTH_API int delete_fluid_midi_router fluid_midi_router_t   handler
 

Delete the midi router.

Parameters:
handler  a pointer to the midi handler
Returns:
0 if no error occured, -1 otherwise

FLUIDSYNTH_API int delete_fluid_player fluid_player_t   player
 

FLUIDSYNTH_API int fluid_midi_dump_postrouter void *    data,
fluid_midi_event_t   event
 

An optional link in the MIDI chain to dump MIDI data between MIDI router and the synthesizer.

FLUIDSYNTH_API int fluid_midi_dump_prerouter void *    data,
fluid_midi_event_t   event
 

An optional link in the MIDI chain to dump MIDI data between MIDI driver and router.

FLUIDSYNTH_API int fluid_midi_event_get_channel fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_control fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_key fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_pitch fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_program fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_type fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_value fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_get_velocity fluid_midi_event_t   evt
 

FLUIDSYNTH_API int fluid_midi_event_set_channel fluid_midi_event_t   evt,
int    chan
 

FLUIDSYNTH_API int fluid_midi_event_set_control fluid_midi_event_t   evt,
int    ctrl
 

FLUIDSYNTH_API int fluid_midi_event_set_key fluid_midi_event_t   evt,
int    key
 

FLUIDSYNTH_API int fluid_midi_event_set_pitch fluid_midi_event_t   evt,
int    val
 

FLUIDSYNTH_API int fluid_midi_event_set_program fluid_midi_event_t   evt,
int    val
 

FLUIDSYNTH_API int fluid_midi_event_set_type fluid_midi_event_t   evt,
int    type
 

FLUIDSYNTH_API int fluid_midi_event_set_value fluid_midi_event_t   evt,
int    val
 

FLUIDSYNTH_API int fluid_midi_event_set_velocity fluid_midi_event_t   evt,
int    vel
 

FLUIDSYNTH_API int fluid_midi_router_handle_midi_event void *    data,
fluid_midi_event_t   event
 

The standard handler function.

Every MIDI event goes through this.

FLUIDSYNTH_API int fluid_player_add fluid_player_t   player,
char *    midifile
 

FLUIDSYNTH_API int fluid_player_join fluid_player_t   player
 

FLUIDSYNTH_API int fluid_player_play fluid_player_t   player
 

FLUIDSYNTH_API int fluid_player_set_bpm fluid_player_t   player,
int    bpm
 

FLUIDSYNTH_API int fluid_player_set_loop fluid_player_t   player,
int    loop
 

FLUIDSYNTH_API int fluid_player_set_midi_tempo fluid_player_t   player,
int    tempo
 

FLUIDSYNTH_API int fluid_player_stop fluid_player_t   player
 

FLUIDSYNTH_API fluid_midi_driver_t* new_fluid_midi_driver fluid_settings_t   settings,
handle_midi_event_func_t    handler,
void *    event_handler_data
 

FLUIDSYNTH_API fluid_midi_event_t* new_fluid_midi_event void   
 

FLUIDSYNTH_API fluid_midi_router_t* new_fluid_midi_router fluid_settings_t   settings,
handle_midi_event_func_t    handler,
void *    event_handler_data
 

Create a new midi router.

A midi handler connects to a midi input device and forwards incoming midi events to the synthesizer.

FLUIDSYNTH_API fluid_player_t* new_fluid_player fluid_synth_t   synth
 


Generated on Thu Mar 13 19:09:35 2003 for libfluidsynth by doxygen1.2.15