diff options
Diffstat (limited to 'libs/plugins/reasonablesynth.lv2/rsynth.c')
-rw-r--r-- | libs/plugins/reasonablesynth.lv2/rsynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c index 665ae13877..5848bee14c 100644 --- a/libs/plugins/reasonablesynth.lv2/rsynth.c +++ b/libs/plugins/reasonablesynth.lv2/rsynth.c @@ -229,7 +229,7 @@ static void process_key (void *synth, RSSynthChannel* sc = &rs->sc[chn]; const int8_t vel = sc->miditable[note]; const int8_t msg = sc->midimsgs[note]; - const float vol = /* master_volume */ 0.1 * fabsf(vel) / 127.0; + const float vol = /* master_volume */ 0.1f * abs(vel) / 127.f; const float phase = sc->phase[note]; const int8_t sus = sc->sustain; sc->midimsgs[note] &= ~3; |