A demand-rate UGen which reproduces and repeats values of a sequence. It is
very similar to Dseq , the difference being that the repeats parameter
specifies the length of output sequence, not the number of repetitions of the
input sequence. The input sequence is repeated if repeats is greater than the
length of the input sequence.
The arguments can be constant or any other ugens, where demand rate UGens are
normally polled, proceeding to the next value when the sub-sequence ends.
// sequence of constants
val in = Dseq(Seq(3, 5, 7, 8, 11), 8)
val tr = Impulse.kr(5)
val v = Demand.kr(tr, in)
val f = (v + 62).midicps
SinOsc.ar(f) * 0.1