For granulation the standard window is the hanning window because of its symmetry and its continuous slope. I think beside the hanning window the only ones which are interesting for granulation are the tuckey window, with control over the width or an exponential or reversed exponential window shape.
You could create those shapes and load them into buffers but i find this very unflexible:
(
~getEnvBufs = {
var exponential = Env(
levels: [0, 1, 0],
times: [0.01, 0.99],
curve: [4.0, -4.0]
);
var exponentialReversed = Env(
levels: [0, 1, 0],
times: [0.99, 0.01],
curve: [4.0, -4.0]
);
var envBufs = [
exponential,
exponentialReversed
];
envBufs.collect{ |envBuf|
Buffer.sendCollection(s, envBuf.discretize(4096));
};
};
~envBufs = ~getEnvBufs.();
)
~envBufs[0].plot;
~envBufs[1].plot;
Its better if you have control over the shapes in realtime.