multiply phase offset (0. to 1.) by samplerate. So, an offset of 0.5 @ 44.1kHz = 22050 samples (500ms). To determine the amount of offset needed to generate a 100-sample offset, divide 100 by samplerate (44.1k); 100/44100 = 0.0022675.
@ brendan mccloskey – The phase offset is relative to the number of samples in the wavetable (512 – 0-1 is 0-512 in samples), so I don’t think you need to account for the samplerate here – a 100 sample offset should be 100 / 512 = 0.195…..
@anamaria Regardless of the above, you should note that the phase offset input sets the offset into the wavetable, not the instantaneous phase (the phase at a particular point in time).
If you need to set the instantaneous phase you’ll need to use a phasor~ connected to a cycle – like this:
– Pasted Max Patch, click to expand. –
Copy all of the following text. Then, in Max, select New From Clipboard.