mganss / pdjs

JavaScript External for Pure Data based on V8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tasker/Scheduler

theslyprofessor opened this issue · 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

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.

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.