scide: implement selectionLength for openDocument
[supercollider.git] / HelpSource / Classes / Dseq.schelp
blob3b0568f91e47bad7e18266b0eaa9e21f41a20fcf
1 class:: Dseq
2 summary:: Demand rate sequence generator.
3 related:: Classes/Demand, Classes/Drand, Classes/Dser, Classes/Duty, Classes/Dxrand, Classes/TDuty
4 categories:: UGens>Demand
6 Description::
8 Demand rate sequence generator.
11 See link::Classes/Pseq:: for structurally related equivalent.
14 classmethods::
16 method::new
18 argument::list
20 An array of values or other UGens.
23 argument::repeats
25 Number of repeats.
28 Examples::
30 code::
34         var a, freq, trig;
35         a = Dseq([1, 3, 2, 7, 8], 3);
36         trig = Impulse.kr(MouseX.kr(1, 40, 1));
37         freq = Demand.kr(trig, 0, a) * 30 + 340;
38         SinOsc.ar(freq) * 0.1
40 }.play;
43 // audio rate
46         var a, freq, trig;
47         a = Dseq({ 10.rand } ! 32, inf);
48         trig = Impulse.ar(MouseX.kr(1, 10000, 1));
49         freq = Demand.ar(trig, 0, a) * 30 + 340;
50         SinOsc.ar(freq) * 0.1
52 }.play;