repeatCycles with every

Hi all, I’m trying to repeat some cycles using the every function.

If I do something like this:

d1 
  $ repeatCycles 3
  $ s "amencutup*4" # n (wchoose [(0,0.2), (1, 0.2), (2,0.25), (3, 0.2), (4,0.5)])

the random pattern generated by wchoose is repeated 3 times.
If instead I do this:

d1 
  $ every 4 (repeatCycles 3)
  $ s "amencutup*4" # n (wchoose [(0,0.2), (1, 0.2), (2,0.25), (3, 0.2), (4,0.5)])

there’s no pattern repeated. Am I using repeatCycles with every in the wrong way? Thanks for the help.

Little update: using every 1 (repeatCycles x) seems to work, while passing any number greater than 1 to every does not work.

1 Like