<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="linseg">
  <refmeta>
    <refentrytitle>linseg</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>linseg</refname>
    <refpurpose>
      Trace a series of line segments between specified points.
      <indexterm id="IndexLinseg"><primary>linseg</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Trace a series of line segments between specified points.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>linseg</command> ia, idur1, ib [, idur2] [, ic] [...]</synopsis>

    <synopsis>kr <command>linseg</command> ia, idur1, ib [, idur2] [, ic] [...]</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>

    <para>
      <emphasis>idur2, idur3</emphasis>, etc. -- duration in seconds of subsequent segments. A zero or negative value will terminate the initialization process with the preceding point, permitting the last-defined line or curve to be continued indefinitely in performance. The default is zero.
    </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 linseg opcode. It uses the files <ulink url="examples/linseg.orc"><citetitle>linseg.orc</citetitle></ulink> and <ulink url="examples/linseg.sco"><citetitle>linseg.sco</citetitle></ulink>.

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/linseg.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="line"><citetitle>line</citetitle></link>,
      <link linkend="linsegr"><citetitle>linsegr</citetitle></link>
    </para>
  </refsect1>

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