<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="lpslot">
  <refmeta>
    <refentrytitle>lpslot</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>lpslot</refname>
    <refpurpose>
      Selects the slot to be use by further lp opcodes.
      <indexterm id="IndexLpslot"><primary>lpslot</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Selects the slot to be use by further lp opcodes.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>lpslot</command> islot</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>islot</emphasis> -- number of slot to be selected.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>lpslot</emphasis> selects the slot to be use by further lp opcodes. This is the way to load and reference several analyses at the same time.
    </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="lpinterp"><citetitle>lpinterp</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: Mark Resibois</member>
        <member>Brussels</member>
        <member>1996</member>
      </simplelist>
    </para>
  </refsect1>
</refentry>
