libfluidsynth  1.1.2
Typedefs | Enumerations
midi.h File Reference

Functions for MIDI events, drivers and MIDI file playback. More...

Typedefs

typedef int(* handle_midi_event_func_t) (void *data, fluid_midi_event_t *event)
 Generic callback function for MIDI events. More...
 

Enumerations

enum  fluid_midi_router_rule_type {
  FLUID_MIDI_ROUTER_RULE_NOTE, FLUID_MIDI_ROUTER_RULE_CC, FLUID_MIDI_ROUTER_RULE_PROG_CHANGE, FLUID_MIDI_ROUTER_RULE_PITCH_BEND,
  FLUID_MIDI_ROUTER_RULE_CHANNEL_PRESSURE, FLUID_MIDI_ROUTER_RULE_KEY_PRESSURE, FLUID_MIDI_ROUTER_RULE_COUNT
}
 MIDI router rule type. More...
 
enum  fluid_player_status { FLUID_PLAYER_READY, FLUID_PLAYER_PLAYING, FLUID_PLAYER_DONE }
 MIDI player status enum. More...
 

Detailed Description

Functions for MIDI events, drivers and MIDI file playback.

Typedef Documentation

◆ handle_midi_event_func_t

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

Generic callback function for MIDI events.

Parameters
dataUser defined data pointer
eventThe MIDI event
Returns
Should return FLUID_OK on success, FLUID_FAILED otherwise

Will be used between

  • MIDI driver and MIDI router
  • MIDI router and synth to communicate events. In the not-so-far future...

Enumeration Type Documentation

◆ fluid_midi_router_rule_type

MIDI router rule type.

Since
1.1.0
Enumerator
FLUID_MIDI_ROUTER_RULE_NOTE 

MIDI note rule.

FLUID_MIDI_ROUTER_RULE_CC 

MIDI controller rule.

FLUID_MIDI_ROUTER_RULE_PROG_CHANGE 

MIDI program change rule.

FLUID_MIDI_ROUTER_RULE_PITCH_BEND 

MIDI pitch bend rule.

FLUID_MIDI_ROUTER_RULE_CHANNEL_PRESSURE 

MIDI channel pressure rule.

FLUID_MIDI_ROUTER_RULE_KEY_PRESSURE 

MIDI key pressure rule.

FLUID_MIDI_ROUTER_RULE_COUNT 

Total count of rule types.

◆ fluid_player_status

MIDI player status enum.

Since
1.1.0
Enumerator
FLUID_PLAYER_READY 

Player is ready.

FLUID_PLAYER_PLAYING 

Player is currently playing.

FLUID_PLAYER_DONE 

Player is finished playing.