From 68d12491d2fb5e8851efd38ae787561a5a0982ab Mon Sep 17 00:00:00 2001 From: derselbst Date: Sun, 3 Sep 2017 00:56:32 +0200 Subject: [PATCH] fix modulator calc for fixed key and vel --- fluidsynth/src/synth/fluid_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluidsynth/src/synth/fluid_mod.c b/fluidsynth/src/synth/fluid_mod.c index bdde506c..fb14cab6 100644 --- a/fluidsynth/src/synth/fluid_mod.c +++ b/fluidsynth/src/synth/fluid_mod.c @@ -179,10 +179,10 @@ fluid_mod_get_source_value(const unsigned char mod_src, val = *range; break; case FLUID_MOD_VELOCITY: - val = fluid_voice_get_velocity(voice); + val = fluid_voice_get_actual_velocity(voice); break; case FLUID_MOD_KEY: - val = fluid_voice_get_key(voice); + val = fluid_voice_get_actual_key(voice); break; case FLUID_MOD_KEYPRESSURE: val = fluid_channel_get_key_pressure (chan);