mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 23:11:41 +00:00
Merge branch 'recent-docs'
This commit is contained in:
commit
3ef6af5ade
4 changed files with 17 additions and 21 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>
|
||||||
|
@ -331,7 +331,7 @@ Developers: Settings can be deprecated by adding: <deprecated>SOME TEXT</depreca
|
||||||
<name>sample-rate</name>
|
<name>sample-rate</name>
|
||||||
<type>num</type>
|
<type>num</type>
|
||||||
<def>44100.0</def>
|
<def>44100.0</def>
|
||||||
<min>22050.0</min>
|
<min>8000.0</min>
|
||||||
<max>96000.0</max>
|
<max>96000.0</max>
|
||||||
<desc>
|
<desc>
|
||||||
The sample rate of the audio generated by the synthesizer.
|
The sample rate of the audio generated by the synthesizer.
|
||||||
|
@ -584,7 +584,7 @@ Developers: Settings can be deprecated by adding: <deprecated>SOME TEXT</depreca
|
||||||
<type>bool</type>
|
<type>bool</type>
|
||||||
<def>0 (FALSE)</def>
|
<def>0 (FALSE)</def>
|
||||||
<desc>
|
<desc>
|
||||||
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.
|
||||||
</desc>
|
</desc>
|
||||||
</setting>
|
</setting>
|
||||||
<setting>
|
<setting>
|
||||||
|
|
|
@ -200,39 +200,36 @@ Choose interpolation method for one channel
|
||||||
.TP
|
.TP
|
||||||
.B REVERB
|
.B REVERB
|
||||||
.TP
|
.TP
|
||||||
.B reverb [0|1|on|off]
|
.B set synth.reverb.active [0|1|on|off]
|
||||||
Turn the reverb on or off
|
Turn the reverb on or off
|
||||||
.TP
|
.TP
|
||||||
.B rev_preset num
|
.B set synth.reverb.room-size num
|
||||||
Load preset num into the reverb unit
|
|
||||||
.TP
|
|
||||||
.B rev_setroomsize num
|
|
||||||
Change reverb room size
|
Change reverb room size
|
||||||
.TP
|
.TP
|
||||||
.B rev_setdamp num
|
.B set synth.reverb.damp num
|
||||||
Change reverb damping
|
Change reverb damping
|
||||||
.TP
|
.TP
|
||||||
.B rev_setwidth num
|
.B set synth.reverb.width num
|
||||||
Change reverb width
|
Change reverb width
|
||||||
.TP
|
.TP
|
||||||
.B rev_setlevel num
|
.B set synth.reverb.level num
|
||||||
Change reverb level
|
Change reverb level
|
||||||
.TP
|
.TP
|
||||||
.B CHORUS
|
.B CHORUS
|
||||||
.TP
|
.TP
|
||||||
.B chorus [0|1|on|off]
|
.B set synth.chorus.active [0|1|on|off]
|
||||||
Turn the chorus on or off
|
Turn the chorus on or off
|
||||||
.TP
|
.TP
|
||||||
.B cho_set_nr n
|
.B set synth.chorus.nr n
|
||||||
Use n delay lines (default 3)
|
Use n delay lines (default 3)
|
||||||
.TP
|
.TP
|
||||||
.B cho_set_level num
|
.B set synth.chorus.level num
|
||||||
Set output level of each chorus line to num
|
Set output level of each chorus line to num
|
||||||
.TP
|
.TP
|
||||||
.B cho_set_speed num
|
.B set synth.chorus.speed num
|
||||||
Set mod speed of chorus to num (Hz)
|
Set mod speed of chorus to num (Hz)
|
||||||
.TP
|
.TP
|
||||||
.B cho_set_depth num
|
.B set synth.chorus.depth num
|
||||||
Set chorus modulation depth to num (ms)
|
Set chorus modulation depth to num (ms)
|
||||||
.TP
|
.TP
|
||||||
.B MIDI ROUTER
|
.B MIDI ROUTER
|
||||||
|
|
|
@ -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);
|
||||||
|
@ -3004,8 +3004,7 @@ fluid_synth_handle_sample_rate(void *data, const char *name, double value)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set sample rate of the synth.
|
* Set sample rate of the synth.
|
||||||
* @note This function is currently experimental and should only be
|
* @note This function should only be used when no voices or notes are active.
|
||||||
* used when no voices or notes are active, and before any rendering calls.
|
|
||||||
* @param synth FluidSynth instance
|
* @param synth FluidSynth instance
|
||||||
* @param sample_rate New sample rate (Hz)
|
* @param sample_rate New sample rate (Hz)
|
||||||
* @since 1.1.2
|
* @since 1.1.2
|
||||||
|
|
Loading…
Reference in a new issue