A kr or ar trigger to start a new grain. If ar, grains after the start of the synth are sample accurate. The following args are polled at grain creation time.
Size of the grain.
The buffer holding an audio signal.
The playback rate of the sampled sound.
The playback position for the grain to start with (0 is beginning, 1 is end of file).
A buffer with a stored signal to be used for the envelope of the grain.
The kind of interpolation for the sampled sound in the grain (1 - none, 2 - linear, 4 - cubic).