Synchronising envelopes with pulse trains in gen~?

Daniel Dariel's icon

Hello folks,

I'm curious about your different tricks to do this. I've been looking at mc.evolve~ and ways of generating pulse trains, either by multiplying a phasor and only keeping the <=1 values to be interpreted as "1", or by using a train operator.

I would like to synchronise the beginning and end of hanning, hamming, gaussian, AD envelopes, etc. to each pulse and its width, and also to control their duty cycles in time.

It might be very trivial, but I haven't figured out how to do that yet. Thank you for reading!

D.

rjungemann's icon

One approach: You can use a sync~ to turn pulses into ramps, which you can use to read a buffer~ containing the desired window shape. The buffer~-help file shows how to generate a hanning window, but there's a bunch of ways to generate the window shapes.