On Thu, Mar 29, 2012 at 12:55:45PM +0200, stephane boussuge wrote:
> Hi,

Since noone answered so far ...
 
> i'm on grace 3.8.0 svn:1969M.
> cycle pattern have a strange comportment:
> 
> if i evaluate many times next(make-cycle({1 2 3 4 5}))
> it output only 1 each time i evaluate .
> 
> is it normal ??

To be expected. Every time you evaluate 

  next(make-cycle({1 2 3 4 5}))
      * ---------------------
      |
this -*

evaluate to a new cycle whose first element is one.
You need to create one cycle and call next on it serveral
times:

 wheel-of-fortune = make-cycle(1 2 3 4 5 6)

 next(wheel-of-fortune)

-> 1

  next(wheel-of-fortune)

-> 2

etc.


 HTH Ralf Mattes

> thanks
> 
> 
> Stéphane Boussuge
> [email protected]
> www.stephaneboussuge.blogspot.com
> 
> 
> 
> 
> 
> 
> 
> 
> 

> _______________________________________________
> Cmdist mailing list
> [email protected]
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to