Any help is welcome.
Hi, Nuno!
FFT is certainly a option but I think I'd start by trying LiSa. LiSa (LIve SAmpling) is a new Ugen that's not in the manual yet but is documented in /examples/special/ in your ChucK dir. She (LiSa is a female Ugen, I feel) is quite capable of granulating and I think one of the examples there covers this. If there isn't one for some unforseen reason we need one, I think.