summaryrefslogtreecommitdiffstats
path: root/Alc/midi/fluidsynth.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-29 02:40:12 -0800
committerChris Robinson <[email protected]>2013-12-29 02:40:12 -0800
commitdeecbbc55d44a0043c92464949c83c9722d6be00 (patch)
treec00c75c006cce9167ecefe32fe9fa67cd59e8da6 /Alc/midi/fluidsynth.c
parentd9aedc14167c7f5c4fc02f95de6be89ef8db63c2 (diff)
Add modulation envelope properties
Diffstat (limited to 'Alc/midi/fluidsynth.c')
-rw-r--r--Alc/midi/fluidsynth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c
index 7855132a..35092966 100644
--- a/Alc/midi/fluidsynth.c
+++ b/Alc/midi/fluidsynth.c
@@ -166,6 +166,14 @@ static int FPreset_noteOn(fluid_preset_t *preset, fluid_synth_t *synth, int chan
fluid_voice_gen_set(voice, 5, sound->ModLfoToPitch);
fluid_voice_gen_set(voice, 6, sound->VibratoLfoToPitch);
fluid_voice_gen_set(voice, 7, sound->ModEnvToPitch);
+ fluid_voice_gen_set(voice, 25, sound->ModEnv.DelayTime);
+ fluid_voice_gen_set(voice, 26, sound->ModEnv.AttackTime);
+ fluid_voice_gen_set(voice, 27, sound->ModEnv.HoldTime);
+ fluid_voice_gen_set(voice, 28, sound->ModEnv.DecayTime);
+ fluid_voice_gen_set(voice, 29, sound->ModEnv.SustainVol);
+ fluid_voice_gen_set(voice, 30, sound->ModEnv.ReleaseTime);
+ fluid_voice_gen_set(voice, 31, sound->ModEnv.KeyToHoldTime);
+ fluid_voice_gen_set(voice, 32, sound->ModEnv.KeyToDecayTime);
fluid_voice_gen_set(voice, 33, sound->VolEnv.DelayTime);
fluid_voice_gen_set(voice, 34, sound->VolEnv.AttackTime);
fluid_voice_gen_set(voice, 35, sound->VolEnv.HoldTime);