<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="voice">
  <refmeta>
    <refentrytitle>voice</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>voice</refname>
    <refpurpose>
      An emulation of a human voice.
      <indexterm id="IndexVoice"><primary>voice</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      An emulation of a human voice.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>voice</command> kamp, kfreq, kphoneme, kform, kvibf, kvamp, ifn, ivfn</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ifn</emphasis>, <emphasis>ivfn</emphasis> -- two table numbers containing the carrier waveform and the vibrato waveform. The files <ulink url="examples/impuls20.aiff"><citetitle>impuls20.aiff</citetitle></ulink>, <ulink url="examples/ahh.aiff"><citetitle>ahh.aiff</citetitle></ulink>, <ulink url="examples/eee.aiff"><citetitle>eee.aiff</citetitle></ulink>, or <ulink url="examples/ooo.aiff"><citetitle>ooo.aiff</citetitle></ulink> are suitable for the first of these, and a sine wave for the second. These files are available from <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>.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp</emphasis> -- Amplitude of note.
    </para>

    <para>
      <emphasis>kfreq</emphasis> -- Frequency of note played. It can be varied in performance.
    </para>

    <para>
      <emphasis>kphoneme</emphasis> -- an integer in the range 0 to 16, which select the formants for the sounds:

      <itemizedlist>
        <listitem>
           <para>
             <quote>eee</quote>, <quote>ihh</quote>, <quote>ehh</quote>, <quote>aaa</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>ahh</quote>, <quote>aww</quote>, <quote>ohh</quote>, <quote>uhh</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>uuu</quote>, <quote>ooo</quote>, <quote>rrr</quote>, <quote>lll</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>mmm</quote>, <quote>nnn</quote>, <quote>nng</quote>, <quote>ngg</quote>.
           </para>
        </listitem>
      </itemizedlist>
    </para>

    <para>
      At present the phonemes

      <itemizedlist>
        <listitem>
           <para>
             <quote>fff</quote>, <quote>sss</quote>, <quote>thh</quote>, <quote>shh</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>xxx</quote>, <quote>hee</quote>, <quote>hoo</quote>, <quote>hah</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>bbb</quote>, <quote>ddd</quote>, <quote>jjj</quote>, <quote>ggg</quote>,
           </para>
        </listitem>

        <listitem>
           <para>
             <quote>vvv</quote>, <quote>zzz</quote>, <quote>thz</quote>, <quote>zhh</quote>
           </para>
        </listitem>
      </itemizedlist>

      are not available (!)
    </para>

    <para>
      <emphasis>kform</emphasis> -- Gain on the phoneme. values 0.0 to 1.2 recommended.
    </para>

    <para>
      <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12
    </para>

    <para>
      <emphasis>kvamp</emphasis> -- amplitude of the vibrato
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the voice opcode. It uses the files <ulink url="examples/voice.orc"><citetitle>voice.orc</citetitle></ulink>, <ulink url="examples/voice.sco"><citetitle>voice.sco</citetitle></ulink>, and <ulink url="examples/impuls20.aiff"><citetitle>impuls20.aiff</citetitle></ulink>.

      <example>
        <title>Example of the voice opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/voice.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/voice.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn; (after &nameperry;)</member>
        <member>University of Bath, Codemist Ltd.</member>
        <member>Bath, UK</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>

    <para>New in Csound version 3.47</para>
  </refsect1>
</refentry>
