Reset cycle~ Phase with bang?

Hi,
I am synthesizing a bell tone that has some slight modulation on the fundamental. I have amp modulated the tone with a cycle~ object. The only problem is that when I trigger the bell tone using a bang the modulated cycle could be anywhere in it’s waveform. Therefore the hits are not consistent. How do I reset the phase of the cycle on each bang?

Hi
in this solution I reset the phase of the oscillator in 1ms, then open the envelope over 5ms. It’s simply a matter of event ordering, and seems to work fine; any residual transients occur only at around 100-200Hz, but are not envelope or phase-reset clicks:

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.