<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="pvsynth">
  <refmeta>
    <refentrytitle>pvsynth</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>pvsynth</refname>
    <refpurpose>
      Resynthesise using a FFT overlap-add.
      <indexterm id="IndexPvsynth"><primary>pvsynth</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Resynthesise using a FFT overlap-add.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>pvsynth</command> fsrc, [iinit]</synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>ar</emphasis> -- output audio signal
    </para>

    <para>
      <emphasis>fsrc</emphasis> -- input signal
    </para>

    <para>
      <emphasis>iinit</emphasis> -- not yet implemented.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      <example>
        <title>Example (using score-supplied f-table, assuming fsig  fftsize = 1024)</title>
        <programlisting>
; score f-table using cubic spline to define shaped peaks
f1 0 513 8 0 2 1 3 0 4 1 6 0 10 1 12 0 16 1 32 0 1 0 436 0
 
asig  buzz     20000,199,50,3        ; pulsewave source
fsig  pvsanal  asig,1024,256,1024,0  ; create fsig
kmod  linseg   0,p3/2,1,p3/2,0       ; simple control sig
 
fsig  pvsmaska fsig,2,kmod           ; apply weird eq to fsig
aout  pvsynth  fsig                  ; resynthesize,
      dispfft  aout,0.1,1024         ; and view the effect
        </programlisting>
      </example>

      This also illustrates that the usual Csound behaviour applies to fsigs; the same name can be used for both input and output.
    </para>
  </refsect1>
 
  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="pvsadsyn"><citetitle>pvsadsyn</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namerichard;</member>
        <member>August 2001 </member>
      </simplelist>
    </para>

    <para>New in version 4.13</para>
    <para>February 2004. Thanks to a note from Francisco Vila, updated the example.</para>
  </refsect1>
</refentry>
