SF2 (soundfonts) don't support release triggers as far as I know. There are three solutions that I can think of to solve this clicky problem:
DELETE the Release Triggers by just deleting all of the script below <group>//Release Triggers
Change the Release Triggers volume by adding the volume value (Range -144 to 6):
//--------------------------------
<group> //Release Triggers
//--------------------------------
//The trigger opcode tells the sampler to play the wav file on either
//attack (midi note on) or release (midi note off)
volume = 2
trigger=release
<region> sample=09-G#0r.wav key=G1
<region> sample=10-A0r.wav key=G#1
<region> sample=11-A#0r.wav key=A1
<region> sample=12-B0r.wav key=A#1
<region> sample=13-C1r.wav key=B1
- And lastly, you could code the release triggers to change in volume according to how long the note has been played. I know how to do this in Kontakt but not in SFZ.
CyberGene For the first issue I believe some decay should be applied to the samples on release instead of cutting them off instantly.
As for the decay and envelope parameters, you could try my standard piano envelope that fades the note out with 0.8 seconds:
ampeg_attack=.005 ampeg_decay=60 ampeg_sustain=5 ampeg_release=0.8
//--------------------------------
<group> //Key Down Samples
//--------------------------------
//This is the velocity range the samples will play when the sampler receives
//a note within the velocity range of 0-127
lovel=0 hivel=127
//The trigger opcode tells the sampler to play the wav file on either
//attack (midi note on) or release (midi note off)
trigger=attack
ampeg_attack=.005 ampeg_decay=60 ampeg_sustain=5 ampeg_release=0.8
// <regions> are the keyboard regions that will trigger a particular .wav file
// for this instrument, all chromatic notes were recorded, so no pitch stretching is
// necessary. The wave files are simply mapped to the midi keys.
<region> sample=09-G#0.wav key=G1
<region> sample=10-A0.wav key=G#1
<region> sample=11-A#0.wav key=A1
<region> sample=12-B0.wav key=A#1
<region> sample=13-C1.wav key=B1
<region> sample=14-C#1.wav key=C2
But you see, now we're getting into much more advanced SFZ scripting opcodes......
Sorry I'm too lazy to change the SFZ file myself and test, but I guess showing you and having you do it gives you better experience anyway.