Phasor is a linear ramp between kstart and kend values. When its trigger input crosses from non-positive to positive, sc_phasor's output will jump to its reset position (or to _kstart_if no reset value was given). Upon reaching the end of its ramp, sc_phasor will wrap back to its start.
If kresetPos is specified, this value will be used to jump to after a trigger. Otherwise, a trigger will set the position back to kstart
If one wants Phasor to output a signal with frequency freq oscillating between start and end, then the rate should be:
(end - start) * freq / sr
Examples
Here is an example of the scphasor opcode. It uses the file scphasor.csd.