<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="Up" href="Audio.Mono.Effect.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of classes" rel=Appendix href="index_classes.html"> <link title="Index of class types" rel=Appendix href="index_class_types.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Audio" rel="Chapter" href="Audio.html"> <link title="Image" rel="Chapter" href="Image.html"> <link title="MIDI" rel="Chapter" href="MIDI.html"> <link title="Ringbuffer" rel="Chapter" href="Ringbuffer.html"> <link title="Synth" rel="Chapter" href="Synth.html"> <link title="Video" rel="Chapter" href="Video.html"><title>Audio.Mono.Effect.ADSR</title> </head> <body> <div class="navbar"> <a class="up" href="Audio.Mono.Effect.html" title="Audio.Mono.Effect">Up</a> </div> <h1>Module <a href="type_Audio.Mono.Effect.ADSR.html">Audio.Mono.Effect.ADSR</a></h1> <pre><span class="keyword">module</span> ADSR: <code class="code">sig</code> <a href="Audio.Mono.Effect.ADSR.html">..</a> <code class="code">end</code></pre><div class="info module top"> ADSR (Attack/Decay/Sustain/Release) envelopes.<br> </div> <hr width="100%"> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre> <div class="info "> An ADSR enveloppe.<br> </div> <pre><span id="VALmake"><span class="keyword">val</span> make</span> : <code class="type">int -> float * float * float * float -> <a href="Audio.Mono.Effect.ADSR.html#TYPEt">t</a></code></pre><div class="info "> Create an envelope with specified Attack/Decay/Sustain/Release times in seconds (excepting sustain which is an amplification coefficient between <code class="code">0.</code> and <code class="code">1.</code>). Negative sustain means that that notes should be released just after decay.<br> </div> <pre><span id="TYPEstate"><span class="keyword">type</span> <code class="type"></code>state</span> </pre> <div class="info "> Current state in the ADSR envelope.<br> </div> <pre><span id="VALinit"><span class="keyword">val</span> init</span> : <code class="type">unit -> <a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a></code></pre><div class="info "> Initial state for processing.<br> </div> <pre><span id="VALrelease"><span class="keyword">val</span> release</span> : <code class="type"><a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a> -> <a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a></code></pre> <pre><span id="VALdead"><span class="keyword">val</span> dead</span> : <code class="type"><a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a> -> bool</code></pre> <pre><span id="VALprocess"><span class="keyword">val</span> process</span> : <code class="type"><a href="Audio.Mono.Effect.ADSR.html#TYPEt">t</a> -><br> <a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a> -><br> <a href="Audio.Mono.html#TYPEbuffer">Audio.Mono.buffer</a> -> int -> int -> <a href="Audio.Mono.Effect.ADSR.html#TYPEstate">state</a></code></pre></body></html>