diff --git a/doc/fluidsettings.xml b/doc/fluidsettings.xml index 603fcb7f..1be1823e 100644 --- a/doc/fluidsettings.xml +++ b/doc/fluidsettings.xml @@ -47,7 +47,7 @@ Developers: Settings can be deprecated by adding: SOME TEXTnum 8 0 - 21 + 256 Specifies the modulation depth of the chorus. diff --git a/src/rvoice/fluid_chorus.c b/src/rvoice/fluid_chorus.c index 93c6c238..94746432 100644 --- a/src/rvoice/fluid_chorus.c +++ b/src/rvoice/fluid_chorus.c @@ -90,8 +90,8 @@ * Set through MAX_SAMPLES_LN2. * For example: * MAX_SAMPLES_LN2=12 - * => MAX_SAMPLES=pow(2,12)=4096 - * => MAX_SAMPLES_ANDMASK=4095 + * => MAX_SAMPLES=pow(2,12-1)=2048 + * => MAX_SAMPLES_ANDMASK=2047 */ #define MAX_SAMPLES_LN2 12 diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 271b6f7c..c7ce3dde 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -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_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.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.lock-memory", 1, 0, 1, FLUID_HINT_TOGGLED);