Grain reversal codebox

nouserid's icon

Hey there, I'm trying to modify this lovely bit of code from Kengo to have the option to play the grains in reverse but can't seem to work it out. Any help would be very much appreciated.

Max Patch
Copy patch and select New From Clipboard in Max.