[CM] Sprouting processes from sequences?

Rick Taube taube@uiuc.edu
Thu, 23 Jan 2003 21:02:36 -0800


if you send me the code i can see what is going wrong. it should work. or
try subclassing container for you class, offhand i dont see why it wont
work.



----- Original Message -----
From: "Larry Troxler" <lt@westnet.com>
To: "Rick Taube" <taube@uiuc.edu>
Cc: <cmdist@ccrma.Stanford.EDU>
Sent: Thursday, January 23, 2003 5:49 PM
Subject: Re: [CM] Sprouting processes from sequences?


> Rick Taube wrote:
> >
> > actually, as i look at it i realize you should not use enqueue - just
call schedule-object recursivly instead. that way the stuff you are adding
will get initialized correctly no matter what it is.
> >
> > (defmethod schedule-object ((obj arpeggio) start)
> >   (let ((add (create-arpeggio-objects obj)))
> >      ;; add stuff to queue but not self.
> >      (dolist (a add)
> >        (schedule-object a start ))))
>
> I tried it, and it seems that my schedule-object method never gets
> called, because my
> "arpeggio" class just gets directly outputed to the score file as a
> single csound
> event with the instrument number being "ARPEGGIO".
>
> I think I'm going to give up on this and just define preprocessing
> methods that insert events on objects into a new sequence (the default
> would be just to copy the event). I need to cut my losses - I've spent
> far too much time on this shit :-)
>
>
> Larry Troxler
>