how to synchronise waveform cycles using [phasor~] - example patch included

DJF's icon

I would like to be able to synchronise waveforms so that their cycles match up i.e. they both start at the same point in time. Could somebody help me? I have included a patch which outlines what I mean clearly.

Max Patch
Copy patch and select New From Clipboard in Max.

I have sort of managed to synchronise the cycle of a sine and triangle waveform using the [phasor~] object in combination with [rate~] and a sync message. The wave form's cycles are very nearly sync'd, however, they are a little bit out. Could somebody help me?