Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 1638

csound-manual-5.13.0-5.fc15.noarch.rpm

<?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>fmvoice</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <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="fmrhode.html" title="fmrhode" />
    <link rel="next" href="fmwurlie.html" title="fmwurlie" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">fmvoice</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="fmrhode.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="fmwurlie.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="fmvoice">
      <a id="fmvoice"></a>
      <div class="titlepage"></div>
      <a id="IndexFmvoice" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">fmvoice</span>
        </h2>
        <p>fmvoice — 
      FM Singing Voice Synthesis
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2908101"></a>
        <h2>Description</h2>
        <p>
      FM Singing Voice Synthesis
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id2908113"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ares <span class="command"><strong>fmvoice</strong></span> kamp, kfreq, kvowel, ktilt, kvibamt, kvibrate, ifn1, \
      ifn2, ifn3, ifn4, ivibfn</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id2909052"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ifn1, ifn2, ifn3,ifn3</em></span> -- Tables, usually of sinewaves.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id2909067"></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>kvowel</em></span> -- the vowel being sung, in the range 0-64
    </p>
        <p>
      <span class="emphasis"><em>ktilt</em></span> -- the spectral tilt of the sound in the range 0 to 99
    </p>
        <p>
      <span class="emphasis"><em>kvibamt</em></span> -- Depth of vibrato
    </p>
        <p>
      <span class="emphasis"><em>kvibrate</em></span> -- Rate of vibrato
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id2909123"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the fmvoice opcode. It uses the file <a class="ulink" href="examples/fmvoice.csd" target="_top"><em class="citetitle">fmvoice.csd</em></a>.

      </p>
        <div class="example">
          <a id="id2909140"></a>
          <p class="title">
            <b>Example 251. Example of the fmvoice opcode.</b>
          </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">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
<span class="comment">; Audio out   Audio in    No messages</span>
-odac           -iadc     -d     <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o fmvoice.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="comment">; Initialize the global variables.</span>
<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">kr</span> <span class="op">=</span> 4410
<span class="ohdr">ksmps</span> <span class="op">=</span> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 1

<span class="comment">; Instrument #1.</span>
<span class="oblock">instr</span> 1
  kamp <span class="op">=</span> 30000
  kfreq <span class="op">=</span> 110
  <span class="comment">; Use the fourth p-field for the vowel.</span>
  kvowel <span class="op">=</span> p4
  ktilt <span class="op">=</span> 0
  kvibamt <span class="op">=</span> 0.005
  kvibrate <span class="op">=</span> 6
  ifn1 <span class="op">=</span> 1
  ifn2 <span class="op">=</span> 1
  ifn3 <span class="op">=</span> 1
  ifn4 <span class="op">=</span> 1
  ivibfn <span class="op">=</span> 1

  a1 <span class="opc">fmvoice</span> kamp, kfreq, kvowel, ktilt, kvibamt, kvibrate, ifn1, ifn2, ifn3, ifn4, ivibfn
  <span class="opc">out</span> a1
<span class="oblock">endin</span>


<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>

<span class="comment">; Table #1, a sine wave.</span>
<span class="stamnt">f</span> 1 0 16384 10 1

<span class="comment">; p4 = vowel (a value from 0 to 64)</span>
<span class="comment">; Play Instrument #1 for one second, vowel=1.</span>
<span class="stamnt">i</span> 1 0 1 1
<span class="comment">; Play Instrument #1 for one second, vowel=2.</span>
<span class="stamnt">i</span> 1 1 1 2
<span class="comment">; Play Instrument #1 for one second, vowel=3.</span>
<span class="stamnt">i</span> 1 2 1 3
<span class="comment">; Play Instrument #1 for one second, vowel=4.</span>
<span class="stamnt">i</span> 1 3 1 4
<span class="comment">; Play Instrument #1 for one second, vowel=5.</span>
<span class="stamnt">i</span> 1 4 1 5
<span class="stamnt">e</span>


<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2909178"></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="fmrhode.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="fmwurlie.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">fmrhode </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> fmwurlie</td>
        </tr>
      </table>
    </div>
  </body>
</html>