hey, to derive a trigger from a linear ramp between 0 and 1 you can calculate the absolute Delta (current sample - last sample).abs and compare that with a threshold of 0.5. This will work for upward and downward ramps. But with this setup you wont get an initial trigger and when you manually reset your phasor in the first half of the Duty cycle you also wouldnt get a trigger, because the Delta isnt big enough. A more reliable trigger detection is based on calculating the Delta and the Sum and get the proportional Change, If the Change was big you get a trigger. Check out the rampToTrig function in my Collection of functions for sub-sample accurate Granulation here: A collection of functions for sub-sample accurate granulation
For my presentation at NOTAM I have prepared a Guide for phasor based scheduling, you can find that here: NOTAM Meetups: Spring 2025 - #9 by dietcv