| 1 | |
| 2 | <refentry id="fmmetal"> |
| 3 | <indexterm id="IndexFmmetal"><primary>fmmetal</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:FM Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>fmmetal</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>fmmetal</refname> |
| 13 | <refpurpose> |
| 14 | Uses FM synthesis to create a <quote>Heavy Metal</quote> sound. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Uses FM synthesis to create a <quote>Heavy Metal</quote> sound. It comes from a family of FM sounds, all using 4 basic oscillators and various architectures, as used in the TX81Z synthesizer. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>fmmetal</command> kamp, kfreq, kc1, kc2, kvdepth, kvrate, ifn1, ifn2, ifn3, \ |
| 28 | ifn4, ivfn</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | 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. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | The initial waves should be: |
| 39 | <itemizedlist> |
| 40 | <listitem><para><emphasis>ifn1</emphasis> -- sine wave</para></listitem> |
| 41 | <listitem><para><emphasis>ifn2</emphasis> -- <ulink url="examples/twopeaks.aiff"><citetitle>twopeaks.aiff</citetitle></ulink></para></listitem> |
| 42 | <listitem><para><emphasis>ifn3</emphasis> -- <ulink url="examples/twopeaks.aiff"><citetitle>twopeaks.aiff</citetitle></ulink></para></listitem> |
| 43 | <listitem><para><emphasis>ifn4</emphasis> -- sine wave</para></listitem> |
| 44 | </itemizedlist> |
| 45 | </para> |
| 46 | |
| 47 | <note> |
| 48 | <title>Note</title> |
| 49 | <para> |
| 50 | The file <quote>twopeaks.aiff</quote> is also available at <ulink url="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/"><citetitle>ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/</citetitle></ulink>. |
| 51 | </para> |
| 52 | </note> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Performance</title> |
| 57 | <para> |
| 58 | <emphasis>kamp</emphasis> -- Amplitude of note. |
| 59 | </para> |
| 60 | |
| 61 | <para> |
| 62 | <emphasis>kfreq</emphasis> -- Frequency of note played. |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | <emphasis>kc1, kc2</emphasis> -- Controls for the synthesizer: |
| 67 | <itemizedlist> |
| 68 | <listitem><para><emphasis>kc1</emphasis> -- Total mod index</para></listitem> |
| 69 | <listitem><para><emphasis>kc2</emphasis> -- Crossfade of two modulators</para></listitem> |
| 70 | <listitem><para><emphasis>Algorithm</emphasis> -- 3</para></listitem> |
| 71 | </itemizedlist> |
| 72 | </para> |
| 73 | |
| 74 | <para> |
| 75 | <emphasis>kvdepth</emphasis> -- Vibrator depth |
| 76 | </para> |
| 77 | |
| 78 | <para> |
| 79 | <emphasis>kvrate</emphasis> -- Vibrator rate |
| 80 | </para> |
| 81 | </refsect1> |
| 82 | |
| 83 | <refsect1> |
| 84 | <title>Examples</title> |
| 85 | <para> |
| 86 | Here is an example of the fmmetal opcode. It uses the file <ulink url="examples/fmmetal.csd"><citetitle>fmmetal.csd</citetitle></ulink>, and <ulink url="examples/twopeaks.aiff"><citetitle>twopeaks.aiff</citetitle></ulink>. |
| 87 | |
| 88 | <example> |
| 89 | <title>Example of the fmmetal opcode.</title> |
| 90 | |
| 91 | |
| 92 | |
| 93 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 94 | <xi:include href="examples-xml/fmmetal.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 95 | </example> |
| 96 | </para> |
| 97 | </refsect1> |
| 98 | |
| 99 | <refsect1> |
| 100 | <title>See Also</title> |
| 101 | <para> |
| 102 | <link linkend="SiggenFmsynth"><citetitle>FM Synthesis</citetitle></link> |
| 103 | </para> |
| 104 | <para> More information about frequency modulation on Wikipedia: <ulink url="http://en.wikipedia.org/wiki/Frequency_modulation_synthesis"><citetitle>http://en.wikipedia.org/wiki/Frequency_modulation_synthesis</citetitle></ulink></para> |
| 105 | </refsect1> |
| 106 | |
| 107 | <refsect1> |
| 108 | <title>Credits</title> |
| 109 | <para> |
| 110 | <simplelist> |
| 111 | <member>Author: &namejohn; (after &nameperry;)</member> |
| 112 | <member>University of Bath, Codemist Ltd.</member> |
| 113 | <member>Bath, UK</member> |
| 114 | </simplelist> |
| 115 | </para> |
| 116 | |
| 117 | <para>New in Csound version 3.47</para> |
| 118 | </refsect1> |
| 119 | </refentry> |