a-EQ: Transfer function curves improvement
[ardour.git] / libs / plugins / reasonablesynth.lv2 / rsynth.c
index 665ae13877164029b86f1e3d22c5905379da39e3..5848bee14c06a391d5d0ddb7f1262f9bf0383c7b 100644 (file)
@@ -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;