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

  <refnamediv>
    <refname>rspline</refname>
    <refpurpose>
      Generate random spline curves.
      <indexterm id="IndexRspline"><primary>rspline</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      Generate random spline curves.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>rspline</command> xrangeMin, xrangeMax, kcpsMin, kcpsMax</synopsis>

    <synopsis>kr <command>rspline</command> krangeMin, krangeMax, kcpsMin, kcpsMax</synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kr, ar</emphasis> -- Output signal
    </para>

    <para>
      <emphasis>xrangeMin, xrangeMax</emphasis> -- Range of values of random-generated points
    </para>

    <para>
      <emphasis>kcpsMin, kcpsMax</emphasis> -- Range of point-generation rate. Min and max limits are expressed in cps.
    </para>

    <para>
      <emphasis>xamp</emphasis> -- Amplitude factor
    </para>

    <para>
      <emphasis>rspline</emphasis> (random-spline-curve generator) is similar to <link linkend="jspline"><citetitle>jspline</citetitle></link> but output range is defined by means of two limit values. Also in this case, real output range could be a bit greater of range values, because of interpolating curves beetween each pair of random-points.
    </para>

    <para>
      At present time generated curves are quite smooth when cpsMin is not too different from cpsMax. When cpsMin-cpsMax interval is big, some little discontinuity could occurr, but it should not be a problem, in most cases. Maybe the algorithm will be improved in next versions.
    </para>

    <para>
      These opcodes are often better than <link linkend="jitter"><citetitle>jitter</citetitle></link> when user wants to <quote>naturalize</quote> or <quote>analogize</quote> digital sounds. They could be used also in algorithmic composition, to generate smooth random melodic lines when used together with <link linkend="samphold"><citetitle>samphold</citetitle></link> opcode.
    </para>

    <para>
      Note that the result is quite different from the one obtained by filtering white noise, and they allow the user to obtain a much more precise control.
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>New in version 4.15</para>
  </refsect1>
</refentry>
