I have a couple more clock/schedule related questions after rereading the comments from Miller and Seb.
1) Is the Pd clock scheduler only accurate to the ms or does it operate at higher than ms accuracy? (As in, if I wanted to role my own mechanism closer to what Seb did, how frequently should my master time go off?)
2) Miller made reference to the linked list of clocks that pd iterates through. Is that something I could access directly? (and if so, where would it live?
3) if anyone knows good books or online resources for learning more about writing scheduler related code, I'm all ears! :-)
thanks iain
On 2021-06-12 19:11, Iain Duncan wrote:
- Is the Pd clock scheduler only accurate to the ms or does it
operate at higher than ms accuracy? (As in, if I wanted to role my own mechanism closer to what Seb did, how frequently should my master time go off?)
It's subsample accurate in Pd's logical time. Interaction with DSP needs care, see for example [vline~].
I think if you keep a priority queue data structure you can schedule your single clock to the soonest event, maybe rescheduling it when new events are added or the clock expires and the event fires.
Claude