Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / Pseries.schelp
blobf14b65d3679df7d212fb3fc8a6ebfcabc61eae9b
1 class:: Pseries
2 summary:: artithmetic series pattern
3 related:: Classes/Pgeom
4 categories:: Streams-Patterns-Events>Patterns>List
6 description::
8 Returns a stream that behaves like an arithmetric series.
10 ClassMethods::
12 method::new
14 argument::start
15 start value.
17 argument::step
18 addition factor.
20 argument::length
21 number of values produced.
23 Examples::
25 code::
27 var a;
28 a = Pgeom(1.0, 1.1, inf);
29 a.asStream.nextN(100).plot;
33 // sound example
35 SynthDef(\help_sinegrain,
36         { arg out=0, freq=440, sustain=0.05;
37                 var env;
38                 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
39                 Out.ar(out, SinOsc.ar(freq, 0, env))
40         }).add;
44 var a;
45 a = Pseries(300, 20, 70).asStream;
47         a.do { |val|
48                 Synth(\help_sinegrain, [\freq, val]);
49                 0.02.wait;
50         }
51 }.fork;
55 Pbind(
56         \dur, 0.01,
57         \instrument, \help_sinegrain,
58         \freq, Pseries(800.0, Pbrown(-1.0, 3.0, 0.1, inf), inf)
59 ).play;