Granulator - individual grain amplitude

Tristan Cassel-Delavois's icon

Hi everyone,

There may be a very simple answer to this (or not!) but is there any way to set the volume of each individual grain? I would like to add a bit of randomisation to the grain levels to add some texture and variety.

I'm experimenting with a couple of workarounds assuming there is not a more obvious solution:

1. Linking the gain of a channel output to the frequency of the trigger input but this doesn't work as well for overlapping grains as the volume will jumps at the start of each new grain.

2. Creating lots of output channels e.g. 128 and randomising the gains of each output channel but this adds in a lot of extra cpu usage.

Alex Norman's icon

you can use the 'winfunc' attribute to scale the window by a value that gets latched at the grain creation time.

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

Tristan Cassel-Delavois's icon

Thanks Alex,

That works great!

Alex Norman's icon

happy to hear that Tristan!