document reverb and chorus settings

This commit is contained in:
derselbst 2018-05-17 19:59:34 +02:00
parent 70837ce8fc
commit 57abab0a31
3 changed files with 77 additions and 2 deletions

View file

@ -42,6 +42,42 @@ Developers: Settings can be deprecated by adding: <deprecated>SOME TEXT</depreca
<desc>
When set to 1 (TRUE) the chorus effects module is activated. Otherwise, no chorus will be added to the output signal. Note that the amount of signal sent to the chorus module depends on the "chorus send" generator defined in the SoundFont.</desc>
</setting>
<setting>
<name>chorus.depth</name>
<type>num</type>
<def>8</def>
<min>0</min>
<max>21</max>
<desc>
Specifies the modulation depth of the chorus.</desc>
</setting>
<setting>
<name>chorus.level</name>
<type>num</type>
<def>2</def>
<min>0</min>
<max>10</max>
<desc>
Specifies the output amplitude of the chorus signal.</desc>
</setting>
<setting>
<name>chorus.nr</name>
<type>int</type>
<def>3</def>
<min>0</min>
<max>99</max>
<desc>
Sets the voice count of the chorus.</desc>
</setting>
<setting>
<name>chorus.speed</name>
<type>num</type>
<def>0.3</def>
<min>0.29</min>
<max>5</max>
<desc>
Sets the modulation speed in Hz.</desc>
</setting>
<setting>
<name>cpu-cores</name>
<type>int</type>
@ -247,6 +283,42 @@ Developers: Settings can be deprecated by adding: <deprecated>SOME TEXT</depreca
When set to 1 (TRUE) the reverb effects module is activated. Otherwise, no reverb will be added to the output signal. Note that the amount of signal sent to the reverb module depends on the "reverb send" generator defined in the SoundFont.
</desc>
</setting>
<setting>
<name>reverb.damp</name>
<type>num</type>
<def>0</def>
<min>0</min>
<max>1</max>
<desc>
Sets the amount of reverb damping.</desc>
</setting>
<setting>
<name>reverb.level</name>
<type>num</type>
<def>0.9</def>
<min>0</min>
<max>1</max>
<desc>
Sets the reverb output amplitude.</desc>
</setting>
<setting>
<name>reverb.roomsize</name>
<type>num</type>
<def>0.2</def>
<min>0</min>
<max>1</max>
<desc>
Sets the room size (i.e. amount of wet) reverb.</desc>
</setting>
<setting>
<name>reverb.width</name>
<type>num</type>
<def>0.5</def>
<min>0</min>
<max>100</max>
<desc>
Sets the stereo spread of the reverb signal.</desc>
</setting>
<setting>
<name>sample-rate</name>
<type>num</type>

View file

@ -116,6 +116,7 @@ Changes in FluidSynth 2.0.0 concerning developers:
- add fluid_synth_add_default_mod() and fluid_synth_remove_default_mod() for manipulating default modulators
- add individual reverb setters: fluid_synth_set_reverb_roomsize(), fluid_synth_set_reverb_damp(), fluid_synth_set_reverb_width(), fluid_synth_set_reverb_level()
- add individual chorus setters: fluid_synth_set_chorus_nr(), fluid_synth_set_chorus_level(), fluid_synth_set_chorus_speed(), fluid_synth_set_chorus_depth(), fluid_synth_set_chorus_type()
- add realtime settings for <a href="fluidsettings.xml#synth.reverb.damp">reverb</a> and <a href="fluidsettings.xml#synth.chorus.depth">chorus</a> parameters
- introduce a separate data type for sequencer client IDs: #fluid_seq_id_t
- add seek support to midi-player, see fluid_player_seek()
- expose functions to manipulate the ladspa effects unit (see ladspa.h)

View file

@ -3429,7 +3429,7 @@ fluid_synth_render_blocks(fluid_synth_t* synth, int blockcount)
}
/*
* Handler for synth.reverb.* settings.
* Handler for synth.reverb.* and synth.chorus.* double settings.
*/
static void fluid_synth_handle_reverb_chorus_num (void *data, const char *name, double value)
{
@ -3459,7 +3459,9 @@ static void fluid_synth_handle_reverb_chorus_num (void *data, const char *name,
}
}
/*
* Handler for synth.reverb.* and synth.chorus.* integer settings.
*/
static void fluid_synth_handle_reverb_chorus_int (void *data, const char *name, int value)
{
fluid_synth_t *synth = (fluid_synth_t *)data;