rfw-ugens/Help/AverageOutput.html

46 lines
2.0 KiB
HTML
Raw Normal View History

2008-12-17 21:17:25 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
2008-12-22 18:28:04 +00:00
<meta name="CocoaVersion" content="949.43">
2008-12-17 21:17:25 +00:00
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
2008-12-22 18:28:04 +00:00
p.p8 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #613b24}
2008-12-17 21:17:25 +00:00
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
span.s1 {text-decoration: underline}
</style>
</head>
<body>
<p class="p1"><b>AverageOutput</b></p>
<p class="p2"><br></p>
<p class="p3">The mean average output since the last received trigger.</p>
<p class="p2"><br></p>
<p class="p4"><b><span class="s1">Class methods</span></b></p>
<p class="p2"><br></p>
<p class="p5"><b>*ar(in, trig, mul, add)</b></p>
<p class="p5"><b>*kr(in, trig, mul, add)</b></p>
<p class="p6"><br></p>
<p class="p6"><br></p>
<p class="p3"><b>in - </b>input signal.</p>
<p class="p2"><br></p>
<p class="p3"><b>trig</b> -<span class="Apple-converted-space">  </span>if changes from &lt;= 0 to &gt; 0, resets average and count to zero.</p>
<p class="p2"><br></p>
<p class="p2"><br></p>
<p class="p3"><i>Examples</i></p>
<p class="p7"><br></p>
2008-12-18 17:23:16 +00:00
<p class="p8">// stepper cycles between 0 and 1, average hovers around 0.5</p>
<p class="p9">a = { AverageOutput.kr(Stepper.kr(Impulse.kr(1), min: 0, max: 1)).poll }.play;</p>
2008-12-17 21:17:25 +00:00
<p class="p7"><br></p>
<p class="p9">a.free;</p>
</body>
</html>