Adding Starting Phase Slider to Iso-Modulator

Hi. Is it possible if someone can help me with adding a starting phase slider into the Isochronic-Modulator plugin? I’m looking to have the ability to retard or advance the phase of the track, if that makes any sense. Essentially i’m trying to bring the “Starting phase (degrees)” adjustment from the Tremolo effect into the Iso-Mod plugin, and I haven’t had much luck, considering that I have close to zero experience with coding with Nyquist (or any computer language for that matter). If someone could help me out, that would be fantastic. Thank you.

-Tristan
Isomod.ny (1.43 KB)
tremolo.ny (1.61 KB)

Below the line:

;control enda "Final Modulation Depth" int "%" 100 0 100

add the line:

;control ph "Starting phase" real "" 0 -180 180

and change this partL

;; Function to generate sweep tone
(defun sweep (sf ef)
     (mult 0.5 (sum 1.0 (fmlfo (pwlv sf 1.0 ef) *waveform*))))

to:

;; Function to generate sweep tone
(defun sweep (sf ef)
     (mult 0.5 (sum 1.0 (fmlfo (pwlv sf 1.0 ef) *waveform* ph))))

Thank you Steve.