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

  <refnamediv>
    <refname>p</refname>
    <refpurpose>
      Show the value in a given p-field.
      <indexterm id="IndexP"><primary>p</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Show the value in a given p-field.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>p</command>(x) </synopsis>

    <para>
      This function works at i-rate and k-rate.
    </para>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>x</emphasis> -- the number of the p-field.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      The value returned by the <emphasis>p</emphasis> function is the value in a p-field. 
    </para>
  </refsect1>

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

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

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

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

      Its output should include lines like:
      <screen>
instr 1:  i1 = 50.375
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
