On Sat, Sep 22, 2012 at 10:30:48AM -0700, Bill Schottstaedt wrote:
>
> > for i from 0 to (length sequence)
>
> do you mean "below" not "to"? I forget how loop works, or nth.
If I'm interpreting the Common Music docs correctly, I should be
able to use "to":
for var [from expr] [to | below expr] [by expr]
increments var from an on optional starting value to an ending value
by an optional amount stopping statements
That's from:
http://commonmusic.sourceforge.net/cm/res/doc/cm.html#iteration
And nth works like this:
> (nth '(A B C) 0)
A
> (nth '(A B C) 1)
B
etc..
--Sergey
_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist