#This script generates a linear fade-in and fade-out to the selected Sound # (accordingly, it works only if a sound is selected) # the variable 't' (next line) determines the window of the fading t = 0.1 Formula... if x < 't' then self * (x/'t') else self fi ft = Get finishing time Formula... if (x > ('ft' - 't')) then self * (('ft'- x)/'t') else self fi