<?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>fmmetal</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="fmbell.html" title="fmbell" /> <link rel="next" href="fmpercfl.html" title="fmpercfl" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">fmmetal</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="fmbell.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="fmpercfl.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="fmmetal"> <a id="fmmetal"></a> <div class="titlepage"></div> <a id="IndexFmmetal" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">fmmetal</span> </h2> <p>fmmetal — Uses FM synthesis to create a <span class="quote">“<span class="quote">Heavy Metal</span>”</span> sound. </p> </div> <div class="refsect1" title="Description"> <a id="idp23582072"></a> <h2>Description</h2> <p> Uses FM synthesis to create a <span class="quote">“<span class="quote">Heavy Metal</span>”</span> sound. It comes from a family of FM sounds, all using 4 basic oscillators and various architectures, as used in the TX81Z synthesizer. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp23634552"></a> <h2>Syntax</h2> <pre class="synopsis">ares <span class="command"><strong>fmmetal</strong></span> kamp, kfreq, kc1, kc2, kvdepth, kvrate, ifn1, ifn2, ifn3, \ ifn4, ivfn</pre> </div> <div class="refsect1" title="Initialization"> <a id="idp23635768"></a> <h2>Initialization</h2> <p> All these opcodes take 5 tables for initialization. The first 4 are the basic inputs and the last is the low frequency oscillator (LFO) used for vibrato. The last table should usually be a sine wave. </p> <p> The initial waves should be: </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p><span class="emphasis"><em>ifn1</em></span> -- sine wave</p> </li> <li class="listitem"> <p><span class="emphasis"><em>ifn2</em></span> -- <a class="ulink" href="examples/twopeaks.aiff" target="_top"><em class="citetitle">twopeaks.aiff</em></a></p> </li> <li class="listitem"> <p><span class="emphasis"><em>ifn3</em></span> -- <a class="ulink" href="examples/twopeaks.aiff" target="_top"><em class="citetitle">twopeaks.aiff</em></a></p> </li> <li class="listitem"> <p><span class="emphasis"><em>ifn4</em></span> -- sine wave</p> </li> </ul> </div> <p> </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 file <span class="quote">“<span class="quote">twopeaks.aiff</span>”</span> is 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="idp23641152"></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>kc1, kc2</em></span> -- Controls for the synthesizer: </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p><span class="emphasis"><em>kc1</em></span> -- Total mod index</p> </li> <li class="listitem"> <p><span class="emphasis"><em>kc2</em></span> -- Crossfade of two modulators</p> </li> <li class="listitem"> <p><span class="emphasis"><em>Algorithm</em></span> -- 3</p> </li> </ul> </div> <p> </p> <p> <span class="emphasis"><em>kvdepth</em></span> -- Vibrator depth </p> <p> <span class="emphasis"><em>kvrate</em></span> -- Vibrator rate </p> </div> <div class="refsect1" title="Examples"> <a id="idp23645416"></a> <h2>Examples</h2> <p> Here is an example of the fmmetal opcode. It uses the file <a class="ulink" href="examples/fmmetal.csd" target="_top"><em class="citetitle">fmmetal.csd</em></a>, and <a class="ulink" href="examples/twopeaks.aiff" target="_top"><em class="citetitle">twopeaks.aiff</em></a>. </p> <div class="example"> <a id="idp23646848"></a> <p class="title"> <strong>Example 275. Example of the fmmetal 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 fmmetal.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> 440 kvdepth <span class="op">=</span> 0 kvrate <span class="op">=</span> 0 ifn1 <span class="op">=</span> 1 ifn2 <span class="op">=</span> 2 ifn3 <span class="op">=</span> 2 ifn4 <span class="op">=</span> 1 ivfn <span class="op">=</span> 1 kc2 <span class="op">=</span> p5 kc1 <span class="opc">line</span> p4, p3, 1 asig <span class="opc">fmmetal</span> .5, kfreq, kc1, kc2, kvdepth, kvrate, ifn1, ifn2, ifn3, ifn4, ivfn <span class="opc">outs</span> asig, asig <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="comment">; sine wave.</span> <span class="stamnt">f</span> 1 0 32768 10 1 <span class="comment">; the "twopeaks.aiff" audio file.</span> <span class="stamnt">f</span> 2 0 256 1 "twopeaks.ai<span class="stamnt">f</span><span class="stamnt">f</span>" 0 0 0 <span class="stamnt">i</span> 1 0 4 6 5 <span class="stamnt">i</span> 1 5 4 .2 10 <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="See Also"> <a id="idp23649160"></a> <h2>See Also</h2> <p> <a class="link" href="fmb3.html" title="fmb3"><em class="citetitle">fmb3</em></a>, <a class="link" href="fmbell.html" title="fmbell"><em class="citetitle">fmbell</em></a>, <a class="link" href="fmpercfl.html" title="fmpercfl"><em class="citetitle">fmpercfl</em></a>, <a class="link" href="fmrhode.html" title="fmrhode"><em class="citetitle">fmrhode</em></a>, <a class="link" href="fmwurlie.html" title="fmwurlie"><em class="citetitle">fmwurlie</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="idp23652160"></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="fmbell.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="fmpercfl.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">fmbell </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> fmpercfl</td> </tr> </table> </div> </body> </html>