<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="lpinterp">
  <refmeta>
    <refentrytitle>lpinterp</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>lpslot</refname>
    <refname>lpinterp</refname>
    <refpurpose>
      Computes a new set of poles from the interpolation between two analysis.
      <indexterm id="IndexLpinterp"><primary>lpinterp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Computes a new set of poles from the interpolation between two analysis.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>lpinterp</command> islot1, islot2, kmix</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>islot1</emphasis> -- slot where the first analysis was stored
    </para>

    <para>
      <emphasis>islot2</emphasis> -- slot where the second analysis was stored
    </para>

    <para>
      <emphasis>kmix</emphasis> -- mix value between the two analysis. Should be between 0 and 1. 0 means analysis 1 only. 1 means analysis 2 only. Any value in between will produce interpolation between the filters.
    </para>

    <para>
      <emphasis>lpinterp</emphasis> computes a new set of poles from the interpolation between two analysis. The poles will be stored in the current <emphasis>lpslot</emphasis> and used by the next <emphasis>lpreson</emphasis> opcode.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is a typical orc using the opcodes:
      <informalexample>
        <programlisting>
ipower <emphasis>init</emphasis> 50000  ; Define sound generator
ifreq  <emphasis>init</emphasis> 440 
asrc   <emphasis>buzz</emphasis> ipower,ifreq,10,1
  
ktime  <emphasis>line</emphasis> 0,p3,p3          ; Define time lin
       <emphasis>lpslot</emphasis> 0              ; Read square data poles
krmsr,krmso,kerr,kcps <emphasis>lpread</emphasis>    ktime,&quot;square.pol&quot;                     
       <emphasis>lpslot</emphasis> 1              ; Read triangle data poles
krmsr,krmso,kerr,kcps <emphasis>lpread</emphasis>    ktime,&quot;triangle.pol&quot;
kmix   <emphasis>line</emphasis> 0,p3,1           ; Compute result of mixing
       <emphasis>lpinterp</emphasis> 0,1,kmix     ; and balance power
ares   <emphasis>lpreson</emphasis> asrc
aout   <emphasis>balance</emphasis> ares,asrc
       <emphasis>out</emphasis> aout
        </programlisting>
      </informalexample>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="lpslot"><citetitle>lpslot</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
  </refsect1>
</refentry>
