<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="stix">
  <refmeta>
    <refentrytitle>stix</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>stix</refname>
    <refpurpose>
      Semi-physical model of a stick sound.
      <indexterm id="IndexStix"><primary>stix</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>stix</emphasis> is a semi-physical model of a stick sound. It is one of the PhISEM percussion opcodes. PhISEM (Physically Informed Stochastic Event Modeling) is an algorithmic approach for simulating collisions of multiple independent sound producing objects.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>stix</command> iamp, idettack [, inum] [, idamp] [, imaxshake]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iamp</emphasis> -- Amplitude of output.  Note: As these instruments are stochastic, this is only a approximation.
    </para>

    <para>
      <emphasis>idettack</emphasis> -- period of time over which all sound is stopped
    </para>
 
    <para>
      <emphasis>inum</emphasis> (optional) -- The number of beads, teeth, bells, timbrels, etc.  If zero, the default value is 30.
    </para>

    <para>
      <emphasis>idamp</emphasis> (optional) -- the damping factor, as part of this equation:
      <literallayout>damping_amount = 0.998 + (idamp * 0.002)</literallayout>
    </para>

    <para>
      The default <emphasis>damping_amount</emphasis> is 0.998 which means that the default value of <emphasis>idamp</emphasis> is 0. The maximum <emphasis>damping_amount</emphasis> is 1.0 (no damping). This means the maximum value for <emphasis>idamp</emphasis> is 1.0.
    </para>

    <para>
      The recommended range for <emphasis>idamp</emphasis> is usually below 75% of the maximum value.
    </para>


    <para>
      <emphasis>imaxshake</emphasis> (optional) -- amount of energy to add back into the system. The value should be in range 0 to 1.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the stix opcode. It uses the files <ulink url="examples/stix.orc"><citetitle>stix.orc</citetitle></ulink> and <ulink url="examples/stix.sco"><citetitle>stix.sco</citetitle></ulink>.

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="cabasa"><citetitle>cabasa</citetitle></link>,
      <link linkend="crunch"><citetitle>crunch</citetitle></link>,
      <link linkend="sandpaper"><citetitle>sandpaper</citetitle></link>,
      <link linkend="sekere"><citetitle>sekere</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &nameperry;, part of the PhOLIES (Physically-Oriented Library of Imitated Environmental Sounds)</member>
        <member>Adapted by &namejohn;</member>
        <member>University of Bath, Codemist Ltd.</member>
        <member>Bath, UK</member>
      </simplelist>
    </para>

    <para>New in Csound version 4.07</para>
    <para>Added notes by &namerasmus; on May 2002.</para>
  </refsect1>
</refentry>
