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

  <refnamediv>
    <refname>jspline</refname>
    <refpurpose>
      A jitter-spline generator.
      <indexterm id="IndexJspline"><primary>jspline</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      A jitter-spline generator.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>jspline</command> xamp, kcpsMin, kcpsMax</synopsis>

    <synopsis>kr <command>jspline</command> kamp, kcpsMin, kcpsMax</synopsis>
  </refsect1>

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

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

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

    <para>
      <emphasis>jspline</emphasis> (jitter-spline generator) generates a smooth curve based on random points generated at [cpsMin, cpsMax] rate.  This opcode is similar to randomi or randi or jitter, but segments are not straight lines, but cubic spline curves. Output value range is approximately &gt; -xamp and &lt; xamp. Actually, real range could be a bit greater, 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>
