Forums > MaxMSP

Reset cycle~ Phase with bang?

October 25, 2009 | 7:44 pm

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?

Thanks in advance, Mike.

October 25, 2009 | 7:52 pm

is this what you want to do?

– Pasted Max Patch, click to expand. –
October 25, 2009 | 7:56 pm

Thanks for the reply. Sending a 0. into the phase input doesn’t seem to work for me. I have tried a float into sig~ and into phase as well and it still doesn’t reset.


October 25, 2009 | 8:01 pm

You can use a phasor~ to drive the phase inlet of cycle~ and then reset phasor with a [button] > [ trigger 0]. Then you just send the desired frequency to phasor~ instead of cycle~.

like so:

– Pasted Max Patch, click to expand. –

October 25, 2009 | 8:03 pm

I see…

Maybe you could post a small patch with what you want to do
and indicate the problem specifically.


October 25, 2009 | 8:21 pm

Excellent. The phasor reset works. Thanks for the help guys.


Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP