Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / Place.schelp
blob65b5bf45fb4217a8574a521afcee8312987d9526
1 class:: Place
2 summary:: interlaced embedding of subarrays
3 related:: Classes/Ppatlace
4 categories:: Streams-Patterns-Events>Patterns>List
6 description::
8 Returns elements in the list. If an element is an array itself, it embeds the first element when it comes by first time, the second element when it comes by the second time... The nth when it comes by the nth time.
10 Examples::
12 code::
14 var a, b;
15 a = Place(#[1, [2,5], [3, 6]], inf);
16 x = a.asStream;
17 8.do({ x.next.postln; });
31 //Place used as a sequence of pitches
34 SynthDef("help-sinegrain",
35         { arg out=0, freq=440, sustain=0.05;
36                 var env;
37                 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
38                 Out.ar(out, SinOsc.ar(freq, 0, env))
39         }).add;
44 c = Place(#[0, 0, [0, 4, 7], [1, 5, 8], [2, 6, 9]], inf) + 67;
45 x = c.asStream;
46 Routine({
47         loop({
48                 Synth("help-sinegrain", [\freq, x.next.midicps]);
49                 0.17.wait;
50         })
51 }).play;