Since the "delayLength" and "grainLength" inputs are both expressed in seconds, rather than number of samples, I think it might be more consistent to call them "delayDur" and "grainDur."