<!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="previous" href="Audio.Mono.Effect.html"> <link rel="Up" href="Audio.Mono.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.Generator</title> </head> <body> <div class="navbar"><a class="pre" href="Audio.Mono.Effect.html" title="Audio.Mono.Effect">Previous</a> <a class="up" href="Audio.Mono.html" title="Audio.Mono">Up</a> </div> <h1>Module <a href="type_Audio.Mono.Generator.html">Audio.Mono.Generator</a></h1> <pre><span class="keyword">module</span> Generator: <code class="code">sig</code> <a href="Audio.Mono.Generator.html">..</a> <code class="code">end</code></pre><div class="info module top"> Sound generators.<br> </div> <hr width="100%"> <pre><span id="TYPEt"><span class="keyword">class type</span> <a href="Audio.Mono.Generator.t-c.html">t</a></span> = <code class="code">object</code> <a href="Audio.Mono.Generator.t-c.html">..</a> <code class="code">end</code></pre><div class="info"> A sound generator. </div> <pre><span name="TYPEsine"><span class="keyword">class</span> <a href="Audio.Mono.Generator.sine-c.html">sine</a></span> : <code class="type">int -> ?volume:float -> ?phase:float -> float -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre><div class="info"> Generate a sine waveform. </div> <pre><span name="TYPEsquare"><span class="keyword">class</span> <a href="Audio.Mono.Generator.square-c.html">square</a></span> : <code class="type">int -> ?volume:float -> ?phase:float -> float -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre><div class="info"> Generate a square waveform. </div> <pre><span name="TYPEsaw"><span class="keyword">class</span> <a href="Audio.Mono.Generator.saw-c.html">saw</a></span> : <code class="type">int -> ?volume:float -> ?phase:float -> float -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre><div class="info"> Generate a saw waveform. </div> <pre><span name="TYPEwhite_noise"><span class="keyword">class</span> <a href="Audio.Mono.Generator.white_noise-c.html">white_noise</a></span> : <code class="type">?volume:float -> int -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre> <pre><span name="TYPEchain"><span class="keyword">class</span> <a href="Audio.Mono.Generator.chain-c.html">chain</a></span> : <code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a> -> <a href="Audio.Mono.Effect.t-c.html">Audio.Mono.Effect.t</a> -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre> <pre><span name="TYPEadd"><span class="keyword">class</span> <a href="Audio.Mono.Generator.add-c.html">add</a></span> : <code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a> -> <a href="Audio.Mono.Generator.t-c.html">t</a> -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre> <pre><span name="TYPEmult"><span class="keyword">class</span> <a href="Audio.Mono.Generator.mult-c.html">mult</a></span> : <code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a> -> <a href="Audio.Mono.Generator.t-c.html">t</a> -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre> <pre><span name="TYPEadsr"><span class="keyword">class</span> <a href="Audio.Mono.Generator.adsr-c.html">adsr</a></span> : <code class="type"><a href="Audio.Mono.Effect.ADSR.html#TYPEt">Audio.Mono.Effect.ADSR.t</a> -> <a href="Audio.Mono.Generator.t-c.html">t</a> -> </code><code class="type"><a href="Audio.Mono.Generator.t-c.html">t</a></code></pre><div class="info"> Apply an ADSR envlope on a generator. </div> </body></html>