Granulator problems (clicks)

halflifebe's icon

Hi everyone,

Max Patch
Copy patch and select New From Clipboard in Max.

I'm trying to build a granulator in max.
Here is my first attempt. As you can hear, there's some "clicks" when I change the grain size or the grain position.
Can anyone tell me why?
Thanks

Rodrigo's icon

You are changing things (both size and position) while phasor is still in the middle of playing, causing the discontinuity. You need to use sah~ to only make changes when phasor resets. There's probably other solutions, but my sample rate chops aren't super great.

halflifebe's icon

Thanks Rodrigo, it works great with sah~!