Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > a228190325affd3a38a9ed14c6aaa02a > files > 191

ocaml-mm-devel-0.2.1-3.mga4.x86_64.rpm

<!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="Synth.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>Synth.t</title>
</head>
<body>
<div class="navbar">&nbsp;<a class="up" href="Synth.html" title="Synth">Up</a>
&nbsp;</div>
<h1>Class type <a href="type_Synth.t.html">Synth.t</a></h1>

<pre><span id="TYPEt"><span class="keyword">class type</span> t</span> = <code class="code">object</code> <a href="Synth.t-c.html">..</a> <code class="code">end</code></pre><div class="info classtype top">
A synthesizer.<br>
</div>
<hr width="100%">

<pre><span id="METHODset_volume"><span class="keyword">method</span> set_volume</span> : <code class="type">float -> unit</code></pre><div class="info ">
Set the global volume of the synth.<br>
</div>

<pre><span id="METHODnote_on"><span class="keyword">method</span> note_on</span> : <code class="type">int -> float -> unit</code></pre><div class="info ">
Play a note.<br>
</div>

<pre><span id="METHODnote_off"><span class="keyword">method</span> note_off</span> : <code class="type">int -> float -> unit</code></pre><div class="info ">
Stop playing a note.<br>
</div>

<pre><span id="METHODfill_add"><span class="keyword">method</span> fill_add</span> : <code class="type"><a href="Audio.html#TYPEbuffer">Audio.buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Fill a buffer with synthesized data adding to the original data of the buffer.<br>
</div>

<pre><span id="METHODplay"><span class="keyword">method</span> play</span> : <code class="type"><a href="MIDI.html#TYPEbuffer">MIDI.buffer</a> -> int -> <a href="Audio.html#TYPEbuffer">Audio.buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Synthesize into an audio buffer. Notice that the delta times in the track
      should be in samples (so they do depend on the samplerate).<br>
</div>

<pre><span id="METHODplay_add"><span class="keyword">method</span> play_add</span> : <code class="type"><a href="MIDI.html#TYPEbuffer">MIDI.buffer</a> -> int -> <a href="Audio.html#TYPEbuffer">Audio.buffer</a> -> int -> int -> unit</code></pre><div class="info ">
Same as <code class="code">play</code> but keeps data originally present in the buffer.<br>
</div>

<pre><span id="METHODreset"><span class="keyword">method</span> reset</span> : <code class="type">unit</code></pre><div class="info ">
Reset the synthesizer (sets all notes off in particular).<br>
</div>
</body></html>