pdjs icon indicating copy to clipboard operation
pdjs copied to clipboard

Tasker/Scheduler

Open theslyprofessor opened this issue 3 years ago • 2 comments

Hi, I LOVE this external. I've been doing a lot of work with pitch collections for my dissertation and I was wondering if there was a plan to roll out a scheduler, like the Tasker object that came with MaxMSP. It would come really in handy for timing my events.

Thanks, Nakul

theslyprofessor avatar Dec 18 '20 04:12 theslyprofessor

Thanks. Do you mean the Task object? AFAICT it's similar to setInterval/setTimeout in the browser.

I have no plans to implement any of the additional objects that Max provides. But of course contributions are very welcome.

For this particular object I'm wondering if its functionality couldn't be easily emulated using a metro object that periodically calls a method in the js object.

If you do decide to implement this, it should live in its own set of Task.h/Task.cpp files and define a function that attaches a v8::FunctionTemplate to the global template.

mganss avatar Dec 18 '20 11:12 mganss

That makes sense, thanks! Miller himself suggested the approach that you brought up because of the implications of low-priority scheduling when using a task object.

theslyprofessor avatar Dec 27 '20 03:12 theslyprofessor