Tidal
Tidal copied to clipboard
add a quantized setCycle variant (qSetCycle)
qSetCycle :: Time -> IO()
This would be exactly like setCycle, but instead of immediately setting the cycle count to Time, it'll do it at the next cycle start.
Is any guidance on this available?
I checked in Stream/UI.hs but I'm not sure how do determine a cycle start/end. If streamFirst can help then I am not sure how I pack setCycle in a ControlPattern. Maybe one has to go as deep as onSingleTick in Stream/Process.hs?
withTrigger in Tidal/Boot.hs seems a wrong starting point too, since it's more about Patterns than Clock. I am not sure, though.