I have a list from [matrixctrl] which I want to put into a jit.matrix. But I want the first element of the list to go to cell 0, the second to go to cell 2, the third to cell 4, etc. Or skip by 3s, 4s, etc., consistently. This is so the "master" set of tracks (beats) has a higher resolution than the [matrixctrl], for comparison to live input later (which could be off by a bit).
I'm using [listfunnel] and multiplying the indices by the factor I want, then using "setcell". Works fine and seems quick enough for what I need, but I'm sure this is slow in general. Any way to tell jit.fill to skip indices like that? Or is there another workaround?
Might be nice to have that as a second argument to jit.fill, and the reverse for jit.spill: take every 2nd, 3rd, 4th element of the incoming list, rather than the whole thing. Would allow for some interesting "upsampling" and "downsampling" possibilities, maybe.