[CM] Sprouting processes from sequences?
Larry Troxler
lt@westnet.com
Sat, 18 Jan 2003 23:20:00 -0500
Rick Taube wrote:
>
> hmm that sounds like a neat idea. i think you can simply define the class however you want and then define a method on 'schedule-object' for your class. your method inserts arpeggio stuff instead of the object itself:
>
> (defmethod schedule-object ((obj arpeggio) start)
> (let ((add (create-arpeggio-objects obj)))
> ;; add stuff to queue but not self.
> (dolist (a add)
> (enqueue a start start))))
>
> look in schedule.scm (or schedule.lisp) for the schedule-object methods.
>
Thanks, that's exactly the help I was looking for - I wasn't sure what
methods I needed to define. (and it's the weekend - why are you
answering email?)
Not that I'm complaining of course, I'll try this tonight.
I'm guessing that your proposal isn't equivalent to sprouting a process,
because if I understand correctly, this code will enqueue all the events
at once. So with this method there is no possibility of sprouting a
process from a sequence and having it then interact with other ongoing
processes. Correct? If so, it's not a problem for me right now - I just
mention this to make sure I understand what this code does.
Thanks again!
Larry Troxler