Hi all,
Noob question:
I want to extract certain values from an Array to create a new Array. The indices I want to pull from the original Array are irregularly spaced and are determined by the values at the indices after the ones I pull.
I am stuck on how to iterate the variable for the next desired index. As written below, timeindex is redefined as 0 each time the Routine iterates and I am never able to advance to other indices. If I make timeindex an arg, or assign it before the Routine, I get an error saying SC doesnât understand the â*â operator, presumably because it canât make sense of ~partials[timeindex + 1].
Thanks in advance!
(
~partials.size.do({|i|
var timeindex = 0;
~times.put(i, ~partials[timeindex]);
timeindex = timeindex + (~partials[timeindex + 1] * 3 + 2);
};
);
)```