Forums > Gen

Dynamically generating windows in gen~

Nov 01 2016 | 11:09 am

Hey all,

I’m reworking a patch that I’m trying to dynamically generate a window of a changing length. I ran into a roadblock when trying to do this, and tried to simplify the it in the attached patch. Can someone explain why the gen code on the left doesn’t give increasing values from 0 -1?

— Pasted Max Patch, click to expand. —

Thanks in advance!

Nov 01 2016 | 12:55 pm

The order of arguments – first value, then index. Try: poke(window, i/127, i, 0);

Nov 01 2016 | 1:29 pm

wow. Thanks for that. I wonder how long that would’ve taken me to sort out on my own…

Nov 01 2016 | 2:37 pm

I was just a fresh pair of eyes. Cheers:)

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Gen