<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="upsamp">
  <refmeta>
    <refentrytitle>upsamp</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>upsamp</refname>
    <refpurpose>
      Modify a signal by up-sampling.
      <indexterm id="IndexUpsamp"><primary>upsamp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Modify a signal by up-sampling.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>upsamp</command> ksig</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>upsamp</emphasis> converts a control signal to an audio signal. It does it by simple repetition of the kval. <emphasis>upsamp</emphasis> is a slightly more efficient form of the assignment, <emphasis>asig</emphasis> = <emphasis>ksig</emphasis>.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      <informalexample>
        <programlisting>
asrc  <emphasis>buzz</emphasis>      10000,440,20, 1     ; band-limited pulse train
adif  <emphasis>diff</emphasis>      asrc                ; emphasize the highs
anew  <emphasis>balance</emphasis>   adif, asrc          ;   but retain the power
agate <emphasis>reson</emphasis>     asrc,0,440          ; use a lowpass of the original
asamp <emphasis>samphold</emphasis>  anew, agate         ;   to gate the new audiosig
aout  <emphasis>tone</emphasis>      asamp,100           ; smooth out the rough edges
        </programlisting>
      </informalexample>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="diff"><citetitle>diff</citetitle></link>,
      <link linkend="downsamp"><citetitle>downsamp</citetitle></link>,
      <link linkend="integ"><citetitle>integ</citetitle></link>,
      <link linkend="interp"><citetitle>interp</citetitle></link>,
      <link linkend="samphold"><citetitle>samphold</citetitle></link>
    </para>
  </refsect1>
</refentry>
