Forums > MaxMSP

phasor~ and signal based sync

July 23, 2012 | 8:36 pm

Yellow!

I’m looking for a way to reset the phase of a ramp generating oscillator for clocking purposes.
For critical timing, the reset has to be signal based.

To be honest i’m really surprised phasor~ doesn’t have the option for a signal based phase control / reset. (saw~ does, but it’s not suitable for clocking).

Any clues on how to achieve this?

Cheers!


July 23, 2012 | 9:48 pm

if 1 ms is ok, maybe "peakamp~ 1" before phase input?


July 24, 2012 | 1:55 am

This requires you to have gen~, but should hopefully do what you need, or at least be a good jumping off point. There’s no phase parameter in this (I was lazy and it’s somewhat of a pain to do with this style of phasor, actually).

Anyway, set your frequency in the left inlet, and any change in input in the right inlet will trigger a reset. I’m using a train~ object to generate pulses, but you could actually get away with noise~ and a sah~ – as long as the right inlet is stationary it won’t trigger a reset.

– Pasted Max Patch, click to expand. –

July 24, 2012 | 8:46 am

I posted a solution for this before. It’s here: http://cycling74.com/forums/topic.php?id=37888
Instead of triggering it with a bang you can also generate pulses from other sources with [change] or [delta].


July 24, 2012 | 9:39 am

Thanks for the feedback~ folks.

Finally had an excuse to explore gen a bit, thanks for the up MuShoo.

Clever solution Dave! the beauty of simplicity… thanks.


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