for loop polyphony

bertrandfraysse's icon

I tried to create some polyphony with a for loop in a gen~ codebox, it could not be simpler, but don't understand why it's not working...
if you have any idea.... thank you !

Max Patch
Copy patch and select New From Clipboard in Max.

Nikolas K's icon

Hi Bertrandfraysse,

Max Patch
Copy patch and select New From Clipboard in Max.

I think, the cycle being created in the for is the problem. I might be completely wrong though...
This would be my workaround (and now it could be yours!):

It does what I think yours would do if it worked.
The main difference is that you have to set a maximum limit for the number of voices (by changing the Data cyclePositions size).

-N

Alex Rodrigues's icon

Here's another solution if anyone is interested

Max Patch
Copy patch and select New From Clipboard in Max.