Hi Frank,
The solution given by Christian "Try using a SoundFont editor to edit
the instrument's volume envelope release values" is straightforward.
This is an "offline" solution.
Another "real time" solution should be convenient in the case of music
generation by programming is to use fluid_synth_set_gen() just after
calling fluid_synth_noteon() and before calling fluid_synth_noteoff().
The reason of changing "instrument's volume envelope release" generator
after fluid_synth_noteon() is because this generator value is set by
fluid_synth_noteon() to the initial value coming from the soundfont. The
same remark should be true for any generator.
This should work. Please tell us if it work (or not).
jjc
Le 24/12/2014 00:13, Frank Dahmen a écrit :
Hi,
if i send a note off to the synth
with fluid_synth_noteoff(synth, channel, note);
the sound stops immediately,
how do i achieve that the sound slowly decays like pressing and
releasing a key on a piano?
i tried to set gen parameter "releaseVolEnv" with fluid_synth_set_gen()
but nothing changes
thanks
Frank
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev