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

  <refnamediv>
    <refname>oscilikts</refname>
    <refpurpose>
      A linearly interpolated oscillator with sync status that allows changing the table number at k-rate.
      <indexterm id="IndexOscilikts"><primary>oscilikts</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>oscilikts</emphasis> is the same as <link linkend="oscilikt"><citetitle>oscilikt</citetitle></link>. Except it has a sync input that can be used to re-initialize the oscillator to a k-rate phase value. It is slower than <link linkend="oscilikt"><citetitle>oscilikt</citetitle></link> and <link linkend="osciliktp"><citetitle>osciliktp</citetitle></link>.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>oscilikts</command> xamp, xcps, kfn, async, kphs [, istor]</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>istor</emphasis> (optional, defaults to 0) -- skip initialization.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>xamp</emphasis> -- amplitude.
    </para>

    <para>
      <emphasis>xcps</emphasis> -- frequency in Hz. Zero and negative values are allowed. However, the absolute value must be less than <link linkend="sr"><citetitle>sr</citetitle></link> (and recommended to be less than sr/2).
    </para>

    <para>
      <emphasis>kfn</emphasis> -- function table number. Can be varied at control rate (useful to <quote>morph</quote> waveforms, or select from a set of band-limited tables generated by <link linkend="GEN30"><citetitle>GEN30</citetitle></link>).
    </para>

    <para>
      <emphasis>async</emphasis> -- any positive value resets the phase of <emphasis>oscilikts</emphasis> to <emphasis>kphs</emphasis>. Zero or negative values have no effect.
    </para>

    <para>
      <emphasis>kphs</emphasis> -- sets the phase, initially and when it is re-initialized with async.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the oscilikts opcode. It uses the files <ulink url="examples/oscilikts.orc"><citetitle>oscilikts.orc</citetitle></ulink> and <ulink url="examples/oscilikts.sco"><citetitle>oscilikts.sco</citetitle></ulink>.

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/oscilikts.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="oscilikt"><citetitle>oscilikt</citetitle></link> and
      <link linkend="osciliktp"><citetitle>osciliktp</citetitle></link>.
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &nameistvan;</para>
    <para>New in version 4.22</para>
  </refsect1>
</refentry>
