s
of Rogus_McBogus.
class scheduler { public: err_ind play_note( const MIDI_msg& on, ScheduleTime dur ); err_ind insert( const task_data& td ); err_ind insert( const task_data& td, task** task_return ); err_ind cancel(task* t); };
err_ind play_note( const MIDI_msg& on, ScheduleTime dur
)
play_note
immediately sends out on
which it
assumes to be a note-on. The scheduler will send out the same message,
with the velocity changed to zero, dur
half-milliseconds
later.
err_ind insert( const task_data& td )
err_ind insert( const task_data& td, task** task_return
)
insert
if you might want to cancel the task before it
happens. You should provide the address of a task*
, which
the scheduler will then write the address of a task
into.
You can pass this pointer to cancel
to cancel the task.
err_ind cancel(task* t)
t
. Returns err
if
t
is not a valid task or if it is a task which has
already happened.