Set the current pattern for a set duration.
a task to set the pattern for a duration
the time duration
the pattern to set