cmake build system: visiblity support for clang
[supercollider.git] / Help / UGens / Triggers / SendReply.html
blobc0c6a43351f76c43ff342c2b37cfd11a23e501db
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="824.41">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica; min-height: 22.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0000bf}
18 p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #007300}
19 span.s1 {font: 18.0px Helvetica}
20 span.s2 {color: #004ebd}
21 span.s3 {color: #0000ff}
22 span.s4 {color: #0000bf}
23 span.s5 {color: #007300}
24 span.s6 {color: #000000}
25 span.Apple-tab-span {white-space:pre}
26 </style>
27 </head>
28 <body>
29 <p class="p1"><span class="s1"><b>SendReply</b></span><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>send an array of values from the server to all notified clients</b></p>
30 <p class="p2"><br></p>
31 <p class="p1"><b>SendReply.kr(trig, cmdName, values, replyID)</b></p>
32 <p class="p1"><b>SendReply.ar(trig, cmdName, values, replyID)</b></p>
33 <p class="p3"><br></p>
34 <p class="p3"><br></p>
35 <p class="p1"><b><span class="Apple-tab-span"> </span>trig<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>a non-positive to positive transition triggers a message</p>
36 <p class="p1"><b><span class="Apple-tab-span"> </span>cmdName<span class="Apple-tab-span"> </span></b>a string or symbol, as a message name.</p>
37 <p class="p1"><b><span class="Apple-tab-span"> </span>values<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>array of ugens, or valid ugen inputs</p>
38 <p class="p1"><span class="Apple-tab-span"> </span><b>replyID<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>integer id (similar to <a href="SendTrig.html"><span class="s2">SendTrig</span></a>)</p>
39 <p class="p3"><b><span class="Apple-tab-span"> </span></b></p>
40 <p class="p3"><br></p>
41 <p class="p1">A message is sent to all notified clients. see <a href="../../ServerArchitecture/Server.html"><span class="s3">Server</span></a><span class="s3"> </span>See also: <a href="SendTrig.html"><span class="s3">SendTrig</span></a>.</p>
42 <p class="p3"><br></p>
43 <p class="p1"><b>cmdName<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></p>
44 <p class="p1"><span class="Apple-tab-span"> </span>int - node ID</p>
45 <p class="p1"><span class="Apple-tab-span"> </span>int - reply ID</p>
46 <p class="p1"><span class="Apple-tab-span"> </span>... floats - values.</p>
47 <p class="p4"><br></p>
48 <p class="p4"><br></p>
49 <p class="p4"><br></p>
50 <p class="p5">(</p>
51 <p class="p5">{</p>
52 <p class="p5"><span class="Apple-tab-span"> </span><span class="s4">SendReply</span>.kr(<span class="s4">Impulse</span>.kr(3), <span class="s5">'the_answer'</span>, [40, 41, 42, 43] + <span class="s4">MouseX</span>.kr, 1905);</p>
53 <p class="p5">}.play(s);</p>
54 <p class="p5">)</p>
55 <p class="p6"><br></p>
56 <p class="p5">o.remove; o = <span class="s4">OSCresponder</span>(<span class="s4">nil</span>, <span class="s5">'the_answer'</span>, { <span class="s4">|t, r, msg|</span> msg.postln }).add;</p>
57 <p class="p6"><br></p>
58 <p class="p6"><br></p>
59 <p class="p7">// multichannel expansion</p>
60 <p class="p5">(</p>
61 <p class="p5">{</p>
62 <p class="p8"><span class="s6"><span class="Apple-tab-span"> </span></span>SendReply<span class="s6">.kr(</span>Impulse<span class="s6">.kr(3),<span class="Apple-converted-space"> </span></span></p>
63 <p class="p9"><span class="s6"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>'the_answer'<span class="s6">,<span class="Apple-converted-space"> </span></span></p>
64 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>values: [[40, 80], [41, 56], 42, [43, 100, 200]],<span class="Apple-converted-space"> </span></p>
65 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>replyID: [1905, 1906, 1907, 1908]</p>
66 <p class="p5"><span class="Apple-tab-span"> </span>);</p>
67 <p class="p5">}.play(s);</p>
68 <p class="p5">)</p>
69 </body>
70 </html>