hey, to run the example you have to create the intial Prototype from my thread here:
Just copy and paste what you find there and make sure you have the ProtoDef class installed.
The Prototype ~grainFunctions = Prototype(\grainFunctions);
has to be evaluated before you evaluate the example SynthDef.