libfluidsynth  2.3.5
Effect - Chorus

Functions for configuring the built-in chorus effect. More...

Enumerations

enum  fluid_chorus_mod {
  FLUID_CHORUS_MOD_SINE = 0 ,
  FLUID_CHORUS_MOD_TRIANGLE = 1
}
 Chorus modulation waveform type. More...
 

Functions

int fluid_synth_chorus_on (fluid_synth_t *synth, int fx_group, int on)
 Enable or disable chorus on one or all groups. More...
 
double fluid_synth_get_chorus_depth (fluid_synth_t *synth)
 Get chorus depth of all fx groups. More...
 
int fluid_synth_get_chorus_group_depth (fluid_synth_t *synth, int fx_group, double *depth_ms)
 Get chorus lfo depth of one or all fx groups. More...
 
int fluid_synth_get_chorus_group_level (fluid_synth_t *synth, int fx_group, double *level)
 Get chorus output level of one or all fx groups. More...
 
int fluid_synth_get_chorus_group_nr (fluid_synth_t *synth, int fx_group, int *nr)
 Get chorus count nr of one or all fx groups. More...
 
int fluid_synth_get_chorus_group_speed (fluid_synth_t *synth, int fx_group, double *speed)
 Get chorus waveform lfo speed of one or all fx groups. More...
 
int fluid_synth_get_chorus_group_type (fluid_synth_t *synth, int fx_group, int *type)
 Get chorus waveform type of one or all fx groups. More...
 
double fluid_synth_get_chorus_level (fluid_synth_t *synth)
 Get chorus level of all fx groups. More...
 
int fluid_synth_get_chorus_nr (fluid_synth_t *synth)
 Get chorus voice number (delay line count) value of all fx groups. More...
 
double fluid_synth_get_chorus_speed (fluid_synth_t *synth)
 Get chorus speed in Hz of all fx groups. More...
 
int fluid_synth_get_chorus_type (fluid_synth_t *synth)
 Get chorus waveform type of all fx groups. More...
 
int fluid_synth_set_chorus (fluid_synth_t *synth, int nr, double level, double speed, double depth_ms, int type)
 Set chorus parameters to all fx groups. More...
 
int fluid_synth_set_chorus_depth (fluid_synth_t *synth, double depth_ms)
 Set the chorus depth of all groups. More...
 
int fluid_synth_set_chorus_group_depth (fluid_synth_t *synth, int fx_group, double depth_ms)
 Set chorus lfo depth to one or all chorus groups. More...
 
int fluid_synth_set_chorus_group_level (fluid_synth_t *synth, int fx_group, double level)
 Set chorus output level to one or all chorus groups. More...
 
int fluid_synth_set_chorus_group_nr (fluid_synth_t *synth, int fx_group, int nr)
 Set chorus voice count nr to one or all chorus groups. More...
 
int fluid_synth_set_chorus_group_speed (fluid_synth_t *synth, int fx_group, double speed)
 Set chorus lfo speed to one or all chorus groups. More...
 
int fluid_synth_set_chorus_group_type (fluid_synth_t *synth, int fx_group, int type)
 Set chorus lfo waveform type to one or all chorus groups. More...
 
int fluid_synth_set_chorus_level (fluid_synth_t *synth, double level)
 Set the chorus level of all groups. More...
 
int fluid_synth_set_chorus_nr (fluid_synth_t *synth, int nr)
 Set the chorus voice count of all groups. More...
 
void fluid_synth_set_chorus_on (fluid_synth_t *synth, int on)
 Enable or disable all chorus groups. More...
 
int fluid_synth_set_chorus_speed (fluid_synth_t *synth, double speed)
 Set the chorus speed of all groups. More...
 
int fluid_synth_set_chorus_type (fluid_synth_t *synth, int type)
 Set the chorus type of all groups. More...
 

Detailed Description

Functions for configuring the built-in chorus effect.

Enumeration Type Documentation

◆ fluid_chorus_mod

Chorus modulation waveform type.

Enumerator
FLUID_CHORUS_MOD_SINE 

Sine wave chorus modulation.

FLUID_CHORUS_MOD_TRIANGLE 

Triangle wave chorus modulation.

Function Documentation

◆ fluid_synth_chorus_on()

int fluid_synth_chorus_on ( fluid_synth_t synth,
int  fx_group,
int  on 
)

Enable or disable chorus on one or all groups.

Parameters
synthFluidSynth instance
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all fx groups.
onTRUE to enable chorus, FALSE to disable
Returns
FLUID_OK on success, FLUID_FAILED otherwise

◆ fluid_synth_get_chorus_depth()

double fluid_synth_get_chorus_depth ( fluid_synth_t synth)

Get chorus depth of all fx groups.

Parameters
synthFluidSynth instance
Returns
Chorus depth
Deprecated:
Use fluid_synth_get_chorus_group_depth() in new code instead.

◆ fluid_synth_get_chorus_group_depth()

int fluid_synth_get_chorus_group_depth ( fluid_synth_t synth,
int  fx_group,
double *  depth_ms 
)

Get chorus lfo depth of one or all fx groups.

Parameters
synthFluidSynth instance
fx_groupIndex of the fx group from which lfo depth to fetch. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter common to all fx groups is fetched.
depth_msvalid pointer on value to return.
Returns
FLUID_OK on success, FLUID_FAILED otherwise

◆ fluid_synth_get_chorus_group_level()

int fluid_synth_get_chorus_group_level ( fluid_synth_t synth,
int  fx_group,
double *  level 
)

Get chorus output level of one or all fx groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group from which chorus level to fetch. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter common to all fx groups is fetched.
levelvalid pointer on value to return.
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_get_chorus_group_nr()

int fluid_synth_get_chorus_group_nr ( fluid_synth_t synth,
int  fx_group,
int *  nr 
)

Get chorus count nr of one or all fx groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group from which to fetch the chorus voice count. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter common to all fx groups is fetched.
nrvalid pointer on value to return.
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_get_chorus_group_speed()

int fluid_synth_get_chorus_group_speed ( fluid_synth_t synth,
int  fx_group,
double *  speed 
)

Get chorus waveform lfo speed of one or all fx groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group from which lfo speed to fetch. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter common to all fx groups is fetched.
speedvalid pointer on value to return.
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_get_chorus_group_type()

int fluid_synth_get_chorus_group_type ( fluid_synth_t synth,
int  fx_group,
int *  type 
)

Get chorus waveform type of one or all fx groups.

Parameters
synthFluidSynth instance
fx_groupIndex of the fx group from which to fetch the waveform type. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter common to all fx groups is fetched.
typevalid pointer on waveform type to return (fluid_chorus_mod)
Returns
FLUID_OK on success, FLUID_FAILED otherwise

◆ fluid_synth_get_chorus_level()

double fluid_synth_get_chorus_level ( fluid_synth_t synth)

Get chorus level of all fx groups.

Parameters
synthFluidSynth instance
Returns
Chorus level value
Deprecated:
Use fluid_synth_get_chorus_group_level() in new code instead.

◆ fluid_synth_get_chorus_nr()

int fluid_synth_get_chorus_nr ( fluid_synth_t synth)

Get chorus voice number (delay line count) value of all fx groups.

Parameters
synthFluidSynth instance
Returns
Chorus voice count
Deprecated:
Use fluid_synth_get_chorus_group_nr() in new code instead.

◆ fluid_synth_get_chorus_speed()

double fluid_synth_get_chorus_speed ( fluid_synth_t synth)

Get chorus speed in Hz of all fx groups.

Parameters
synthFluidSynth instance
Returns
Chorus speed in Hz
Deprecated:
Use fluid_synth_get_chorus_group_speed() in new code instead.

◆ fluid_synth_get_chorus_type()

int fluid_synth_get_chorus_type ( fluid_synth_t synth)

Get chorus waveform type of all fx groups.

Parameters
synthFluidSynth instance
Returns
Chorus waveform type (fluid_chorus_mod)
Deprecated:
Use fluid_synth_get_chorus_group_type() in new code instead.

◆ fluid_synth_set_chorus()

int fluid_synth_set_chorus ( fluid_synth_t synth,
int  nr,
double  level,
double  speed,
double  depth_ms,
int  type 
)

Set chorus parameters to all fx groups.

Keep in mind, that the needed CPU time is proportional to 'nr'.

Parameters
synthFluidSynth instance
nrChorus voice count (0-99, CPU time consumption proportional to this value)
levelChorus level (0.0-10.0)
speedChorus speed in Hz (0.1-5.0)
depth_msChorus depth (max value depends on synth sample-rate, 0.0-21.0 is safe for sample-rate values up to 96KHz)
typeChorus waveform type (fluid_chorus_mod)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use the individual chorus setter functions in new code instead.

Keep in mind, that the needed CPU time is proportional to 'nr'.

◆ fluid_synth_set_chorus_depth()

int fluid_synth_set_chorus_depth ( fluid_synth_t synth,
double  depth_ms 
)

Set the chorus depth of all groups.

Parameters
synthFluidSynth instance
depth_msChorus depth (max value depends on synth sample-rate, 0.0-21.0 is safe for sample-rate values up to 96KHz)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use fluid_synth_set_chorus_group_depth() in new code instead.

◆ fluid_synth_set_chorus_group_depth()

int fluid_synth_set_chorus_group_depth ( fluid_synth_t synth,
int  fx_group,
double  depth_ms 
)

Set chorus lfo depth to one or all chorus groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all groups.
depth_mslfo depth to set. Must be in the range indicated by synth.chorus.depth
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_set_chorus_group_level()

int fluid_synth_set_chorus_group_level ( fluid_synth_t synth,
int  fx_group,
double  level 
)

Set chorus output level to one or all chorus groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all groups.
levelOutput level to set. Must be in the range indicated by synth.chorus.level
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_set_chorus_group_nr()

int fluid_synth_set_chorus_group_nr ( fluid_synth_t synth,
int  fx_group,
int  nr 
)

Set chorus voice count nr to one or all chorus groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all groups.
nrVoice count to set. Must be in the range indicated by synth.chorus.nr
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_set_chorus_group_speed()

int fluid_synth_set_chorus_group_speed ( fluid_synth_t synth,
int  fx_group,
double  speed 
)

Set chorus lfo speed to one or all chorus groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all groups.
speedLfo speed to set. Must be in the range indicated by synth.chorus.speed
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_set_chorus_group_type()

int fluid_synth_set_chorus_group_type ( fluid_synth_t synth,
int  fx_group,
int  type 
)

Set chorus lfo waveform type to one or all chorus groups.

Parameters
synthFluidSynth instance.
fx_groupIndex of the fx group. Must be in the range -1 to (fluid_synth_count_effects_groups()-1). If -1 the parameter will be applied to all groups.
typeLfo waveform type to set. (fluid_chorus_mod)
Returns
FLUID_OK on success, FLUID_FAILED otherwise.

◆ fluid_synth_set_chorus_level()

int fluid_synth_set_chorus_level ( fluid_synth_t synth,
double  level 
)

Set the chorus level of all groups.

Parameters
synthFluidSynth instance
levelChorus level (0.0-10.0)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use fluid_synth_set_chorus_group_level() in new code instead.

◆ fluid_synth_set_chorus_nr()

int fluid_synth_set_chorus_nr ( fluid_synth_t synth,
int  nr 
)

Set the chorus voice count of all groups.

Parameters
synthFluidSynth instance
nrChorus voice count (0-99, CPU time consumption proportional to this value)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use fluid_synth_set_chorus_group_nr() in new code instead.

◆ fluid_synth_set_chorus_on()

void fluid_synth_set_chorus_on ( fluid_synth_t synth,
int  on 
)

Enable or disable all chorus groups.

Parameters
synthFluidSynth instance
onTRUE to enable chorus, FALSE to disable
Deprecated:
Use fluid_synth_chorus_on() in new code instead.

◆ fluid_synth_set_chorus_speed()

int fluid_synth_set_chorus_speed ( fluid_synth_t synth,
double  speed 
)

Set the chorus speed of all groups.

Parameters
synthFluidSynth instance
speedChorus speed in Hz (0.1-5.0)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use fluid_synth_set_chorus_group_speed() in new code instead.

◆ fluid_synth_set_chorus_type()

int fluid_synth_set_chorus_type ( fluid_synth_t synth,
int  type 
)

Set the chorus type of all groups.

Parameters
synthFluidSynth instance
typeChorus waveform type (fluid_chorus_mod)
Returns
FLUID_OK on success, FLUID_FAILED otherwise
Deprecated:
Use fluid_synth_set_chorus_group_type() in new code instead.