Here are some EventValues and expressions that might help with MIDI clock sync:
1 bpm: (!TimingClockDuration * 24) s bpm
<aTimeCodeStartTime> s gateOnAtTimeCodeForDuration: 1 s
(!TimingClock durationBetweenTriggers: 24) s bpm removeUnits
!TimingClock is the incoming MIDI timing clock that comes in 24 times per beat.
!TimingClockDuration is the duration between ticks of that clock (so if you multiply it by 24, you get the duration between beats at the incoming BPM).
To start at a specific MIDI time code, send the message gateOnAtTimeCodeForDuration: to the desired start time.