libfluidsynth
2.4.5
|
The functions in this section provide interfaces to change the channel type and to configure basic channels, legato and portamento setups. More...
Channel Type | |
enum | fluid_midi_channel_type { CHANNEL_TYPE_MELODIC = 0 , CHANNEL_TYPE_DRUM = 1 } |
The midi channel type used by fluid_synth_set_channel_type() More... | |
int | fluid_synth_set_channel_type (fluid_synth_t *synth, int chan, int type) |
Set midi channel type. More... | |
Basic Channel Mode | |
enum | fluid_channel_mode_flags { FLUID_CHANNEL_POLY_OFF = 0x01 , FLUID_CHANNEL_OMNI_OFF = 0x02 } |
Channel mode bits OR-ed together so that it matches with the midi spec: poly omnion (0), mono omnion (1), poly omnioff (2), mono omnioff (3) More... | |
enum | fluid_basic_channel_modes { FLUID_CHANNEL_MODE_MASK = (FLUID_CHANNEL_OMNI_OFF | FLUID_CHANNEL_POLY_OFF) , FLUID_CHANNEL_MODE_OMNION_POLY = FLUID_CHANNEL_MODE_MASK & (~FLUID_CHANNEL_OMNI_OFF & ~FLUID_CHANNEL_POLY_OFF) , FLUID_CHANNEL_MODE_OMNION_MONO = FLUID_CHANNEL_MODE_MASK & (~FLUID_CHANNEL_OMNI_OFF & FLUID_CHANNEL_POLY_OFF) , FLUID_CHANNEL_MODE_OMNIOFF_POLY = FLUID_CHANNEL_MODE_MASK & (FLUID_CHANNEL_OMNI_OFF & ~FLUID_CHANNEL_POLY_OFF) , FLUID_CHANNEL_MODE_OMNIOFF_MONO = FLUID_CHANNEL_MODE_MASK & (FLUID_CHANNEL_OMNI_OFF | FLUID_CHANNEL_POLY_OFF) , FLUID_CHANNEL_MODE_LAST } |
Indicates the mode a basic channel is set to. More... | |
int | fluid_synth_reset_basic_channel (fluid_synth_t *synth, int chan) |
Disables and unassigns all channels from a basic channel group. More... | |
int | fluid_synth_get_basic_channel (fluid_synth_t *synth, int chan, int *basic_chan_out, int *mode_chan_out, int *basic_val_out) |
Returns poly mono mode information of any MIDI channel. More... | |
int | fluid_synth_set_basic_channel (fluid_synth_t *synth, int chan, int mode, int val) |
Sets a new basic channel group only. More... | |
Legato Mode | |
enum | fluid_channel_legato_mode { FLUID_CHANNEL_LEGATO_MODE_RETRIGGER , FLUID_CHANNEL_LEGATO_MODE_MULTI_RETRIGGER , FLUID_CHANNEL_LEGATO_MODE_LAST } |
Indicates the legato mode a channel is set to n1,n2,n3,. More... | |
int | fluid_synth_set_legato_mode (fluid_synth_t *synth, int chan, int legatomode) |
Sets the legato mode of a channel. More... | |
int | fluid_synth_get_legato_mode (fluid_synth_t *synth, int chan, int *legatomode) |
Gets the legato mode of a channel. More... | |
Portamento Mode | |
enum | fluid_channel_portamento_mode { FLUID_CHANNEL_PORTAMENTO_MODE_EACH_NOTE , FLUID_CHANNEL_PORTAMENTO_MODE_LEGATO_ONLY , FLUID_CHANNEL_PORTAMENTO_MODE_STACCATO_ONLY , FLUID_CHANNEL_PORTAMENTO_MODE_LAST } |
Indicates the portamento mode a channel is set to. More... | |
int | fluid_synth_set_portamento_mode (fluid_synth_t *synth, int chan, int portamentomode) |
Sets the portamento mode of a channel. More... | |
int | fluid_synth_get_portamento_mode (fluid_synth_t *synth, int chan, int *portamentomode) |
Gets the portamento mode of a channel. More... | |
Breath Mode | |
enum | fluid_channel_breath_flags { FLUID_CHANNEL_BREATH_POLY = 0x10 , FLUID_CHANNEL_BREATH_MONO = 0x20 , FLUID_CHANNEL_BREATH_SYNC = 0x40 } |
Indicates the breath mode a channel is set to. More... | |
int | fluid_synth_set_breath_mode (fluid_synth_t *synth, int chan, int breathmode) |
Sets the breath mode of a channel. More... | |
int | fluid_synth_get_breath_mode (fluid_synth_t *synth, int chan, int *breathmode) |
Gets the breath mode of a channel. More... | |
The functions in this section provide interfaces to change the channel type and to configure basic channels, legato and portamento setups.
Indicates the mode a basic channel is set to.
Enumerator | |
---|---|
FLUID_CHANNEL_MODE_MASK | Mask Poly and Omni bits of fluid_channel_mode_flags, usually only used internally. |
FLUID_CHANNEL_MODE_OMNION_POLY | corresponds to MIDI mode 0 |
FLUID_CHANNEL_MODE_OMNION_MONO | corresponds to MIDI mode 1 |
FLUID_CHANNEL_MODE_OMNIOFF_POLY | corresponds to MIDI mode 2 |
FLUID_CHANNEL_MODE_OMNIOFF_MONO | corresponds to MIDI mode 3 |
Indicates the breath mode a channel is set to.
Indicates the legato mode a channel is set to n1,n2,n3,.
. is a legato passage. n1 is the first note, and n2,n3,n4 are played legato with previous note.
Channel mode bits OR-ed together so that it matches with the midi spec: poly omnion (0), mono omnion (1), poly omnioff (2), mono omnioff (3)
Indicates the portamento mode a channel is set to.
The midi channel type used by fluid_synth_set_channel_type()
Enumerator | |
---|---|
CHANNEL_TYPE_MELODIC | Melodic midi channel. |
CHANNEL_TYPE_DRUM | Drum midi channel. |
int fluid_synth_get_basic_channel | ( | fluid_synth_t * | synth, |
int | chan, | ||
int * | basic_chan_out, | ||
int * | mode_out, | ||
int * | val_out | ||
) |
Returns poly mono mode information of any MIDI channel.
synth | the synth instance |
chan | MIDI channel number (0 to MIDI channel count - 1) |
basic_chan_out | Buffer to store the basic channel chan belongs to or FLUID_FAILED if chan is disabled. |
mode_out | Buffer to store the mode of chan (see fluid_basic_channel_modes) or FLUID_FAILED if chan is disabled. |
val_out | Buffer to store the total number of channels in this basic channel group or FLUID_FAILED if chan is disabled. |
int fluid_synth_get_breath_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int * | breathmode | ||
) |
Gets the breath mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
breathmode | Pointer to the returned breath mode as indicated by fluid_channel_breath_flags. |
int fluid_synth_get_legato_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int * | legatomode | ||
) |
Gets the legato mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
legatomode | The legato mode as indicated by fluid_channel_legato_mode. |
int fluid_synth_get_portamento_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int * | portamentomode | ||
) |
Gets the portamento mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
portamentomode | Pointer to the portamento mode as indicated by fluid_channel_portamento_mode. |
int fluid_synth_reset_basic_channel | ( | fluid_synth_t * | synth, |
int | chan | ||
) |
Disables and unassigns all channels from a basic channel group.
synth | The synth instance. |
chan | The basic channel of the group to reset or -1 to reset all channels. |
int fluid_synth_set_basic_channel | ( | fluid_synth_t * | synth, |
int | chan, | ||
int | mode, | ||
int | val | ||
) |
Sets a new basic channel group only.
The function doesn't allow to change an existing basic channel.
The function fails if any channel overlaps any existing basic channel group. To make room if necessary, basic channel groups can be cleared using fluid_synth_reset_basic_channel().
synth | the synth instance. |
chan | the basic Channel number (0 to MIDI channel count-1). |
mode | the MIDI mode to use for chan (see fluid_basic_channel_modes). |
val | number of channels in the group. |
int fluid_synth_set_breath_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int | breathmode | ||
) |
Sets the breath mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
breathmode | The breath mode as indicated by fluid_channel_breath_flags. |
int fluid_synth_set_channel_type | ( | fluid_synth_t * | synth, |
int | chan, | ||
int | type | ||
) |
Set midi channel type.
synth | FluidSynth instance |
chan | MIDI channel number (0 to MIDI channel count - 1) |
type | MIDI channel type (fluid_midi_channel_type) |
int fluid_synth_set_legato_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int | legatomode | ||
) |
Sets the legato mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
legatomode | The legato mode as indicated by fluid_channel_legato_mode. |
int fluid_synth_set_portamento_mode | ( | fluid_synth_t * | synth, |
int | chan, | ||
int | portamentomode | ||
) |
Sets the portamento mode of a channel.
synth | the synth instance. |
chan | MIDI channel number (0 to MIDI channel count - 1). |
portamentomode | The portamento mode as indicated by fluid_channel_portamento_mode. |