An Interval is a range of integers from a starting value to an ending value by some step value.
Create a new Interval.
Interval(10, 30, 4);
10 to: 30; // the message to creates an interval with step 1
The starting value of the interval.
The ending value of the interval.
The step value of the interval.
Return the number of items in the interval.
xxxxxxxxxx
Interval(10, 30, 4).size.postln;
Return the indexed item in the interval.
xxxxxxxxxx
Interval(10, 30, 4).at(3).postln;
Evaluates function for each item in the interval. The function is passed two arguments, the item and an integer index.
xxxxxxxxxx
Interval(10, 30, 4).do({ arg item, i; item.postln });