<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="linen">
  <refmeta>
    <refentrytitle>linen</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>linen</refname>
    <refpurpose>
      Applies a straight line rise and decay pattern to an input amp signal.
      <indexterm id="IndexLinen"><primary>linen</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>linen</emphasis> -- apply a straight line rise and decay pattern to an input amp signal.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>linen</command> xamp, irise, idur, idec</synopsis>

    <synopsis>kr <command>linen</command> kamp, irise, idur, idec</synopsis>
 </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>irise</emphasis> -- rise time in seconds. A zero or negative value signifies no rise modification.
    </para>

    <para>
      <emphasis>idur</emphasis> -- overall duration in seconds. A zero or negative value will cause initialization to be skipped.
    </para>

    <para>
      <emphasis>idec</emphasis> -- decay time in seconds. Zero means no decay. An <emphasis>idec</emphasis> &gt; <emphasis>idur</emphasis> will cause a truncated decay.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp, xamp</emphasis> -- input amplitude signal.
    </para>

    <para>
      Rise modifications are applied for the first <emphasis>irise</emphasis> seconds, and decay from time <emphasis>idur - idec</emphasis>. If these periods are separated in time there will be a steady state during which <emphasis>amp</emphasis> will be unmodified. If <emphasis>linen</emphasis> rise and decay periods overlap then both modifications will be in effect for that time. If the overall duration <emphasis>idur</emphasis> is exceeded in performance, the final decay will continue on in the same direction, going negative.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="envlpx"><citetitle>envlpx</citetitle></link>,
      <link linkend="envlpxr"><citetitle>envlpxr</citetitle></link>,
      <link linkend="linenr"><citetitle>linenr</citetitle></link>
    </para>
  </refsect1>
</refentry>
