summaryrefslogtreecommitdiff
path: root/opcodes/jspline.xml
blob: 73bdfdfae9ad8af3337b445e808ff9aac04f9404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<refentry id="jspline">
<indexterm id="IndexJspline"><primary>jspline</primary></indexterm>
  <refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo>
  <refmeta>
    <refentrytitle>jspline</refentrytitle>
  </refmeta>



  <refnamediv>
    <refname>jspline</refname>
    <refpurpose>
      A jitter-spline generator.
          </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      A jitter-spline generator.
    </para>
  </refsect1>

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

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

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kres, ares</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 [<emphasis>cpsMin</emphasis>, <emphasis>cpsMax</emphasis>] rate.  This opcode is similar to <link linkend="randomi"><citetitle>randomi</citetitle></link> or <link linkend="randi"><citetitle>randi</citetitle></link> or <link linkend="jitter"><citetitle>jitter</citetitle></link>, but segments are not straight lines, but cubic spline curves. Output value range is approximately &gt; -<emphasis>xamp</emphasis> and &lt; <emphasis>xamp</emphasis>. 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 <emphasis>cpsMin</emphasis> is not too different from <emphasis>cpsMax</emphasis>. When <emphasis>cpsMin</emphasis>-<emphasis>cpsMax</emphasis> 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>