46 lines
2.0 KiB
HTML
46 lines
2.0 KiB
HTML
<!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">
|
||
<meta name="CocoaVersion" content="949.35">
|
||
<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}
|
||
p.p8 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #6c3821}
|
||
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 <= 0 to > 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>
|
||
<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>
|
||
<p class="p7"><br></p>
|
||
<p class="p9">a.free;</p>
|
||
</body>
|
||
</html>
|