<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Any help is welcome.<br>
<br>
</blockquote><div><br>Hi, Nuno!<br><br>FFT is certainly a option but I think I&#39;d start by trying LiSa. LiSa (LIve SAmpling) is a new Ugen that&#39;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&#39;t one for some unforseen reason we need one, I think.<br>
</div></div><br>Any time-streching or pitch-shifting will create artefacts so the trick is picking one that suits your material and perhaps fine-tuning it but generally speaking LiSa can do this kind of thing if provided with a bit of frame-work.<br>
<br>Hope that gets you started. If push comes to shove we could try using FFT to detect the most prominent frequency in the source material and use that to set the grain length and/or rate, that might be a interesting strategy if you&#39;d run into artefacts and this is suitable for the material.<br>
<br>Yours,<br>Kas.<br>