<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="line">
  <refmeta>
    <refentrytitle>line</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>line</refname>
    <refpurpose>
      Trace a straight line between specified points.
      <indexterm id="IndexLine"><primary>line</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Trace a straight line between specified points.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>line</command> ia, idur1, ib</synopsis>

    <synopsis>kr <command>line</command> ia, idur1, ib</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ia</emphasis> -- starting value. Zero is illegal for exponentials.
    </para>

    <para>
      <emphasis>ib, ic</emphasis>, etc. -- value after <emphasis>dur1</emphasis> seconds, etc. For exponentials, must be non-zero and must agree in sign with <emphasis>ia</emphasis>.
    </para>

    <para>
      <emphasis>idur1</emphasis> -- duration in seconds of first segment. A zero or negative value will cause all initialization to be skipped.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      These units generate control or audio signals whose values can pass through 2 or more specified points. The sum of <emphasis>dur</emphasis> values may or may not equal the instrument's performance time: a shorter performance will truncate the specified pattern, while a longer one will cause the last-defined segment to continue on in the same direction.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the line opcode. It uses the files <ulink url="examples/line.orc"><citetitle>line.orc</citetitle></ulink> and <ulink url="examples/line.sco"><citetitle>line.sco</citetitle></ulink>.

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="expon"><citetitle>expon</citetitle></link>, 
      <link linkend="expseg"><citetitle>expseg</citetitle></link>, 
      <link linkend="expsegr"><citetitle>expsegr</citetitle></link>, 
      <link linkend="linseg"><citetitle>linseg</citetitle></link>, 
      <link linkend="linsegr"><citetitle>linsegr</citetitle></link>
    </para>
  </refsect1>

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