1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"949.43">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #0026b1}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #852821}
17 span
.s1
{text-decoration: underline
; color: #0018ea}
18 span
.s2
{text-decoration: underline
; color: #0023e6}
19 span
.s3
{color: #0026b1}
20 span
.s4
{color: #000000}
21 span
.s5
{color: #4d6b1d}
22 span
.s6
{color: #852821}
26 <p class=
"p1"><b>SplayZ
</b></p>
27 <p class=
"p2"><br></p>
28 <p class=
"p3"><b>ATTENTION - SplayZ is deprecated because its geometry is wrong.
<span class=
"Apple-converted-space"> </span></b></p>
29 <p class=
"p3"><b>It is only kept for backwards compatibility - please adapt your patches to SplayAz!
<span class=
"Apple-converted-space"> </span></b></p>
30 <p class=
"p3"><b>See SplayAz help file for the comparison in behavior.
</b></p>
31 <p class=
"p4"><br></p>
32 <p class=
"p4"><br></p>
33 <p class=
"p3"><b>*ar(numChans,inArray, spread,level, width, center, orientation, levelComp)
</b></p>
34 <p class=
"p3"><b>*arFill(numChans, n, function, spread,level, width, center, orientation, levelComp)
</b></p>
35 <p class=
"p2"><br></p>
36 <p class=
"p3">SplayZ spreads an array of channels across a ring of channels.
</p>
37 <p class=
"p3">Optional spread and center controls, and levelComp(ensation) (equal power).
</p>
38 <p class=
"p3">numChans and orientation are as in PanAz.
</p>
39 <p class=
"p4"><br></p>
40 <p class=
"p3"><b>See also:
</b> <a href=
"PanAz.html"><span class=
"s1">PanAz
</span></a><span class=
"s2">, SplayAz
</span></p>
41 <p class=
"p4"><br></p>
43 <p class=
"p5">x = {
<span class=
"s3">arg
</span> spread=
1, level=
0.2, width=
2, center=
0.0;
<span class=
"Apple-converted-space"> </span></p>
44 <p class=
"p6"><span class=
"s4"><span class=
"Apple-converted-space"> </span></span>SplayZ
<span class=
"s4">.ar(
</span></p>
45 <p class=
"p5"><span class=
"Apple-converted-space"> </span>4,
</p>
46 <p class=
"p5"><span class=
"Apple-converted-space"> </span><span class=
"s3">SinOsc
</span>.ar( {
<span class=
"s3">|i|
</span> <span class=
"s3">LFNoise2
</span>.kr( rrand(
10,
20),
200, i +
3 *
100) } !
10),
<span class=
"Apple-converted-space"> </span></p>
47 <p class=
"p5"><span class=
"Apple-converted-space"> </span>spread,
<span class=
"Apple-converted-space"> </span></p>
48 <p class=
"p5"><span class=
"Apple-converted-space"> </span>level,
<span class=
"Apple-converted-space"> </span></p>
49 <p class=
"p5"><span class=
"Apple-converted-space"> </span>width,
</p>
50 <p class=
"p5"><span class=
"Apple-converted-space"> </span>center
</p>
51 <p class=
"p5"><span class=
"Apple-converted-space"> </span>);
</p>
52 <p class=
"p5">}.scope;
</p>
54 <p class=
"p2"><br></p>
55 <p class=
"p5">x.set(
<span class=
"s5">\spread
</span>,
1,
<span class=
"Apple-converted-space"> </span><span class=
"s5">\center
</span>,
0);
<span class=
"Apple-converted-space"> </span><span class=
"s6">// full n chans
</span></p>
56 <p class=
"p5">x.set(
<span class=
"s5">\spread
</span>,
0.5,
<span class=
"s5">\center
</span>, -
0.25);
<span class=
"s6">// less wide
</span></p>
57 <p class=
"p7"><span class=
"s4">x.set(
</span><span class=
"s5">\spread
</span><span class=
"s4">,
0,
</span><span class=
"s5">\center
</span><span class=
"s4">,
0);
<span class=
"Apple-converted-space"> </span></span>// mono center (depends on orientation, see PanAz)
</p>
58 <p class=
"p5">x.set(
<span class=
"s5">\spread
</span>,
0,
<span class=
"s5">\center
</span>, -
0.25);
<span class=
"s6">//
<span class=
"Apple-converted-space"> </span></span></p>
59 <p class=
"p7"><span class=
"s4">x.set(
</span><span class=
"s5">\spread
</span><span class=
"s4">,
0.0,
</span><span class=
"s5">\center
</span><span class=
"s4">,
0.5);
</span>// mono, but rotate
1 toward the higher channels
</p>
60 <p class=
"p7"><span class=
"s4">x.set(
</span><span class=
"s5">\spread
</span><span class=
"s4">,
0.5,
</span><span class=
"s5">\center
</span><span class=
"s4">,
0.5);
</span>// spread over the higher channels
</p>
61 <p class=
"p5">x.set(
<span class=
"s5">\spread
</span>,
0,
<span class=
"Apple-converted-space"> </span><span class=
"s5">\center
</span>, -
0.25);
<span class=
"s6">// all first
</span></p>
62 <p class=
"p5">x.set(
<span class=
"s5">\spread
</span>,
1,
<span class=
"Apple-converted-space"> </span><span class=
"s5">\center
</span>,
0);
<span class=
"Apple-converted-space"> </span><span class=
"s6">// full n chans
</span></p>
63 <p class=
"p2"><br></p>
64 <p class=
"p5">x.free;
</p>
65 <p class=
"p2"><br></p>
66 <p class=
"p7"><span class=
"s4"><span class=
"Apple-converted-space"> </span></span>// the same example written with arFill:
</p>
68 <p class=
"p5">x = {
<span class=
"s3">arg
</span> spread=
1, level=
0.5, width=
2, center=
0.0;
</p>
69 <p class=
"p5"><span class=
"Apple-converted-space"> </span><span class=
"s3">SplayZ
</span>.arFill(
</p>
70 <p class=
"p5"><span class=
"Apple-converted-space"> </span>4,
</p>
71 <p class=
"p5"><span class=
"Apple-converted-space"> </span>10,
<span class=
"Apple-converted-space"> </span></p>
72 <p class=
"p5"><span class=
"Apple-converted-space"> </span>{
<span class=
"s3">|i|
</span> <span class=
"s3">SinOsc
</span>.ar(
<span class=
"s3">LFNoise2
</span>.kr( rrand(
10,
20),
200, i +
3 *
100) ) },
<span class=
"Apple-converted-space"> </span></p>
73 <p class=
"p5"><span class=
"Apple-converted-space"> </span>spread,
<span class=
"Apple-converted-space"> </span></p>
74 <p class=
"p5"><span class=
"Apple-converted-space"> </span>level,
<span class=
"Apple-converted-space"> </span></p>
75 <p class=
"p5"><span class=
"Apple-converted-space"> </span>width,
</p>
76 <p class=
"p5"><span class=
"Apple-converted-space"> </span>center
</p>
77 <p class=
"p5"><span class=
"Apple-converted-space"> </span>);
</p>
78 <p class=
"p5">}.scope;
</p>
80 <p class=
"p2"><br></p>
81 <p class=
"p5"><span class=
"Apple-converted-space"> </span>// or with mouse control
</p>
83 <p class=
"p5">x = { var src;
<span class=
"Apple-converted-space"> </span></p>
84 <p class=
"p5"><span class=
"Apple-converted-space"> </span>src =
<span class=
"s3">SinOsc
</span>.ar( { |i|
<span class=
"s3">LFNoise2
</span>.kr( rrand(
10,
20),
200, i *
100 +
400) } !
10);
</p>
85 <p class=
"p5"><span class=
"Apple-converted-space"> </span><span class=
"s3">SplayZ
</span>.ar(
4, src, MouseY.kr(
1,
0),
0.2, center: MouseX.kr(-
1,
1));
</p>
86 <p class=
"p5">}.scope;
</p>