<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>moog</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="monitor.html" title="monitor" /> <link rel="next" href="moogladder.html" title="moogladder" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">moog</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="monitor.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="moogladder.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="moog"> <a id="moog"></a> <div class="titlepage"></div> <a id="IndexMoog" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">moog</span> </h2> <p>moog — An emulation of a mini-Moog synthesizer. </p> </div> <div class="refsect1" title="Description"> <a id="idp32128248"></a> <h2>Description</h2> <p> An emulation of a mini-Moog synthesizer. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp32128968"></a> <h2>Syntax</h2> <pre class="synopsis">ares <span class="command"><strong>moog</strong></span> kamp, kfreq, kfiltq, kfiltrate, kvibf, kvamp, iafn, iwfn, ivfn</pre> </div> <div class="refsect1" title="Initialization"> <a id="idp32181936"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>iafn, iwfn, ivfn</em></span> -- three table numbers containing the attack waveform (unlooped), the main looping wave form, and the vibrato waveform. The files <a class="ulink" href="examples/mandpluk.aiff" target="_top"><em class="citetitle">mandpluk.aiff</em></a> and <a class="ulink" href="examples/impuls20.aiff" target="_top"><em class="citetitle">impuls20.aiff</em></a> are suitable for the first two, and a sine wave for the last. </p> <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note: Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p> The files <span class="quote">“<span class="quote">mandpluk.aiff</span>”</span> and <span class="quote">“<span class="quote">impuls20.aiff</span>”</span> are also available at <a class="ulink" href="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/" target="_top"><em class="citetitle">ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/</em></a>. </p> </td> </tr> </table> </div> </div> <div class="refsect1" title="Performance"> <a id="idp32185584"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kamp</em></span> -- Amplitude of note. </p> <p> <span class="emphasis"><em>kfreq</em></span> -- Frequency of note played. </p> <p> <span class="emphasis"><em>kfiltq</em></span> -- Q of the filter, in the range 0.8 to 0.9 </p> <p> <span class="emphasis"><em>kfiltrate</em></span> -- rate control for the filter in the range 0 to 0.0002 </p> <p> <span class="emphasis"><em>kvibf</em></span> -- frequency of vibrato in Hertz. Suggested range is 0 to 12 </p> <p> <span class="emphasis"><em>kvamp</em></span> -- amplitude of the vibrato </p> </div> <div class="refsect1" title="Examples"> <a id="idp32189072"></a> <h2>Examples</h2> <p> Here is an example of the moog opcode. It uses the file <a class="ulink" href="examples/moog.csd" target="_top"><em class="citetitle">moog.csd</em></a>, <a class="ulink" href="examples/mandpluk.aiff" target="_top"><em class="citetitle">mandpluk.aiff</em></a>, and <a class="ulink" href="examples/impuls20.aiff" target="_top"><em class="citetitle">impuls20.aiff</em></a>. </p> <div class="example"> <a id="idp32190928"></a> <p class="title"> <strong>Example 490. Example of the moog opcode.</strong> </p> <div class="example-contents"> <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p> <pre class="programlisting"> <span class="csdtag"><CsoundSynthesizer></span> <span class="csdtag"><CsOptions></span> <span class="comment">; Select audio/midi flags here according to platform</span> -odac <span class="comment">;;;realtime audio out</span> <span class="comment">;-iadc ;;;uncomment -iadc if realtime audio input is needed too</span> <span class="comment">; For Non-realtime ouput leave only the line below:</span> <span class="comment">; -o moog.wav -W ;;; for file output any platform</span> <span class="csdtag"></CsOptions></span> <span class="csdtag"><CsInstruments></span> <span class="ohdr">sr</span> <span class="op">=</span> 44100 <span class="ohdr">ksmps</span> <span class="op">=</span> 32 <span class="ohdr">nchnls</span> <span class="op">=</span> 2 <span class="ohdr">0dbfs</span> <span class="op">=</span> 1 <span class="oblock">instr</span> 1 kfreq <span class="op">=</span> <span class="opc">cpspch</span>(p4) kfiltq <span class="op">=</span> p5 kfiltrate <span class="op">=</span> 0.0002 kvibf <span class="op">=</span> 5 kvamp <span class="op">=</span> .01 <span class="comment">;low volume is needed</span> asig <span class="opc">moog</span> .15, kfreq, kfiltq, kfiltrate, kvibf, kvamp, 1, 2, 3 <span class="opc">outs</span> asig, asig <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="stamnt">f</span> 1 0 8192 1 "mandpluk.ai<span class="stamnt">f</span><span class="stamnt">f</span>" 0 0 0 <span class="stamnt">f</span> 2 0 256 1 "impuls20.ai<span class="stamnt">f</span><span class="stamnt">f</span>" 0 0 0 <span class="stamnt">f</span> 3 0 256 10 1 <span class="comment">; sine</span> <span class="stamnt">i</span> 1 0 3 6.00 .1 <span class="stamnt">i</span> 1 + 3 6.05 .89 <span class="stamnt">i</span> 1 + 3 6.09 .50 <span class="stamnt">e</span> <span class="csdtag"></CsScore></span> <span class="csdtag"></CsoundSynthesizer></span> </pre> </div> </div> <p><br class="example-break" /> </p> </div> <div class="refsect1" title="Credits"> <a id="idp32193224"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: John ffitch (after Perry Cook)</td> </tr> <tr> <td>University of Bath, Codemist Ltd.</td> </tr> <tr> <td>Bath, UK</td> </tr> </table> <p> </p> <p>New in Csound version 3.47</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="monitor.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="moogladder.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">monitor </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> moogladder</td> </tr> </table> </div> </body> </html>