[CM] about subobjects

Rick Taube taube@uiuc.edu
Fri, 26 Jul 2002 20:41:45 -0700


> ? (setf (subobjects #!foo) (for i below 10 collect (new midi time i)))

you are missing the :"loop" in the iteration:
(setf (subobjects #!foo) (loop for i below 10 collect (new midi time i)))

> I'm not so concerned by the FOR part of the example. But I haven't been
able
> to find a form for filling a seq with midi events. I've also tried:
>
> (new seq named 'foo)

use the subobjects initarg to specify a list of object to a new seq:

(new seq name 'foo
        subobjects (loop for i below 10
                                  collect (new midi time i)))