[CM] Sprouting processes from sequences?

Rick Taube taube@uiuc.edu
Sat, 18 Jan 2003 19:40:17 -0600


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. 




At 6:50 PM -0500 1/18/03, Larry Troxler wrote:
>I would like to define a class with parameters that I can but in a
>sequence, where the parameters would be the argruments to a process that
>is sprouted at the start-time.
>
>I sort-of had this working on an earlier version of CM, but some things
>have changed - for example, "process" is no longer a class.
>
>Can someone suggest a good way of going about this?
>
>For example,
>
>(defobject arpeggio ()
>	(...)
>	(:parameters time dur step chord ...))
>
>.. and then when scheduled, this object will sprout some process that
>creates an arpeggio, of say csound objects, for example.
>
>The advantage is that a these objects can be nicely sequenced, and when
>printed show their parameters, just like an event.
>
>Larry Troxler
>_______________________________________________
>Cmdist mailing list
>Cmdist@ccrma.stanford.edu
>http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist