Forums > MaxMSP

phasor~ and signal based sync

Jul 23 2012 | 8:36 pm


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?


Jul 23 2012 | 9:48 pm

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

Jul 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. --

Jul 24 2012 | 8:46 am

I posted a solution for this before. It’s here:
Instead of triggering it with a bang you can also generate pulses from other sources with [change] or [delta].

Jul 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)

Forums > MaxMSP