Clicks problems in granulator

halflifebe's icon

Hi guys,

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

I'm trying to make a granulator using no externals.
I made something that works except for one thing.
I've used the sah~ object to avoid clicks when changing parameters.
But I can't use this trick for the "grain size" (because the grain size control the frequency of the phasor that read the envelope buffer.
Any help would be great. Thanks !
Here's the patch:

goodparleyandorfing's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I haven't been able to listen and check this, but it should work. If I were you I'd have all your parameteres >> sah~s triggered by zero crossings from the phasor, as demonstrated.

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hi
I added a few objects to your patch to overcome this - you need to send a sah trigger retrospectively. It also uses goodparleyandorfing's good tip.

Brendan

brendan mccloskey's icon

ps
I like the way you have locked everything to the central phasor, including random panning.
If you have [gen~], you might enjoy (or even improve) this grannie-later ;)

genGrain-2014.zip
zip
halflifebe's icon

Thanks noob_meister, it works great with the trigger send retrospectively!
I'll have a check on your patch using [gen~].