diff --git a/doc/fluidsettings.xml b/doc/fluidsettings.xml index 75ea62bb..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. @@ -331,7 +331,7 @@ Developers: Settings can be deprecated by adding: SOME TEXTsample-rate num 44100.0 - 22050.0 + 8000.0 96000.0 The sample rate of the audio generated by the synthesizer. @@ -584,7 +584,7 @@ Developers: Settings can be deprecated by adding: SOME TEXTbool 0 (FALSE) - If 1 (TRUE), automatically connects FluidSynth to available MIDI input ports. alsa_seq is currently the only driver making use of this. + If 1 (TRUE), automatically connects FluidSynth to available MIDI input ports. alsa_seq and coremidi are currently the only drivers making use of this. diff --git a/doc/fluidsynth.1 b/doc/fluidsynth.1 index 1cb00ee0..c47891c7 100644 --- a/doc/fluidsynth.1 +++ b/doc/fluidsynth.1 @@ -200,39 +200,36 @@ Choose interpolation method for one channel .TP .B REVERB .TP -.B reverb [0|1|on|off] +.B set synth.reverb.active [0|1|on|off] Turn the reverb on or off .TP -.B rev_preset num -Load preset num into the reverb unit -.TP -.B rev_setroomsize num +.B set synth.reverb.room-size num Change reverb room size .TP -.B rev_setdamp num +.B set synth.reverb.damp num Change reverb damping .TP -.B rev_setwidth num +.B set synth.reverb.width num Change reverb width .TP -.B rev_setlevel num +.B set synth.reverb.level num Change reverb level .TP .B CHORUS .TP -.B chorus [0|1|on|off] +.B set synth.chorus.active [0|1|on|off] Turn the chorus on or off .TP -.B cho_set_nr n +.B set synth.chorus.nr n Use n delay lines (default 3) .TP -.B cho_set_level num +.B set synth.chorus.level num Set output level of each chorus line to num .TP -.B cho_set_speed num +.B set synth.chorus.speed num Set mod speed of chorus to num (Hz) .TP -.B cho_set_depth num +.B set synth.chorus.depth num Set chorus modulation depth to num (ms) .TP .B MIDI ROUTER 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 da2bd424..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); @@ -3004,8 +3004,7 @@ fluid_synth_handle_sample_rate(void *data, const char *name, double value) /** * Set sample rate of the synth. - * @note This function is currently experimental and should only be - * used when no voices or notes are active, and before any rendering calls. + * @note This function should only be used when no voices or notes are active. * @param synth FluidSynth instance * @param sample_rate New sample rate (Hz) * @since 1.1.2