Granular synthesis in SC

This morning I started to work on a granular machine in SuperCollider. This is what I got so far: