mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 07:50:49 +00:00
set upper chorus depth to 256 ms
upper depth limit (ms) = (MAX_SAMPLES * 1000) / lower sample rate limit with MAX_SAMPLES==2048 && lowersrate==8000
This commit is contained in:
parent
f972fbf1ec
commit
fd7db023dd
3 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ Developers: Settings can be deprecated by adding: <deprecated>SOME TEXT</depreca
|
||||||
<type>num</type>
|
<type>num</type>
|
||||||
<def>8</def>
|
<def>8</def>
|
||||||
<min>0</min>
|
<min>0</min>
|
||||||
<max>21</max>
|
<max>256</max>
|
||||||
<desc>
|
<desc>
|
||||||
Specifies the modulation depth of the chorus.</desc>
|
Specifies the modulation depth of the chorus.</desc>
|
||||||
</setting>
|
</setting>
|
||||||
|
|
|
@ -90,8 +90,8 @@
|
||||||
* Set through MAX_SAMPLES_LN2.
|
* Set through MAX_SAMPLES_LN2.
|
||||||
* For example:
|
* For example:
|
||||||
* MAX_SAMPLES_LN2=12
|
* MAX_SAMPLES_LN2=12
|
||||||
* => MAX_SAMPLES=pow(2,12)=4096
|
* => MAX_SAMPLES=pow(2,12-1)=2048
|
||||||
* => MAX_SAMPLES_ANDMASK=4095
|
* => MAX_SAMPLES_ANDMASK=2047
|
||||||
*/
|
*/
|
||||||
#define MAX_SAMPLES_LN2 12
|
#define MAX_SAMPLES_LN2 12
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ void fluid_synth_settings(fluid_settings_t *settings)
|
||||||
fluid_settings_register_int(settings, "synth.chorus.nr", FLUID_CHORUS_DEFAULT_N, 0, 99, 0);
|
fluid_settings_register_int(settings, "synth.chorus.nr", FLUID_CHORUS_DEFAULT_N, 0, 99, 0);
|
||||||
fluid_settings_register_num(settings, "synth.chorus.level", FLUID_CHORUS_DEFAULT_LEVEL, 0.0f, 10.0f, 0);
|
fluid_settings_register_num(settings, "synth.chorus.level", FLUID_CHORUS_DEFAULT_LEVEL, 0.0f, 10.0f, 0);
|
||||||
fluid_settings_register_num(settings, "synth.chorus.speed", FLUID_CHORUS_DEFAULT_SPEED, 0.29f, 5.0f, 0);
|
fluid_settings_register_num(settings, "synth.chorus.speed", FLUID_CHORUS_DEFAULT_SPEED, 0.29f, 5.0f, 0);
|
||||||
fluid_settings_register_num(settings, "synth.chorus.depth", FLUID_CHORUS_DEFAULT_DEPTH, 0.0f, 21.0f, 0);
|
fluid_settings_register_num(settings, "synth.chorus.depth", FLUID_CHORUS_DEFAULT_DEPTH, 0.0f, 256.0f, 0);
|
||||||
|
|
||||||
fluid_settings_register_int(settings, "synth.ladspa.active", 0, 0, 1, FLUID_HINT_TOGGLED);
|
fluid_settings_register_int(settings, "synth.ladspa.active", 0, 0, 1, FLUID_HINT_TOGGLED);
|
||||||
fluid_settings_register_int(settings, "synth.lock-memory", 1, 0, 1, FLUID_HINT_TOGGLED);
|
fluid_settings_register_int(settings, "synth.lock-memory", 1, 0, 1, FLUID_HINT_TOGGLED);
|
||||||
|
|
Loading…
Reference in a new issue