Not trying to steal your thunder, but I thought i’d shared the technique before but described how you could retain note length info and ratchet
anyway, along these lines
CVA Pitch
CVB Value Lin
ENV1 to Value Lin B Value
LFO1 to ENV1 Sustain
Set ENV1 to be a resetting (with dot) analog style gate shape, so it will record note duration, but set 0 for time domain components and set sustain to max
Set the LFO to Trig and Phase to taste (Speed 32 allows tempo related effects and fine tuning each way into triplets etc)
P-Lock the LFO depth to minus -128 for the steps where you want to ratchet
P-Lock the rates for all the ratchet fun
It helps when you have a snappy envelope on the receiving device to hear the ratcheting 