How could I implement a control to decay the volume of a Sample (playing back with the Loop On) so it decays over time and gradually becomes softer on every repeat it plays back until it eventually decays to silence:
Value 1 - No Decay
Value 0.75 - 25% Decay on each Repeat
Value 0.50 - 50% Decay on each Repeat
Value 0.25 - 75% Decay on each Repeat
Value 0 - 100% Decay on next Repeat
Thanks
e.