| 1 | |
| 2 | <refentry id="cabasa"> |
| 3 | <indexterm id="IndexCabasa"><primary>cabasa</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Models and Emulations</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>cabasa</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>cabasa</refname> |
| 13 | <refpurpose> |
| 14 | Semi-physical model of a cabasa sound. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | <emphasis>cabasa</emphasis> is a semi-physical model of a cabasa 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. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ares <command>cabasa</command> iamp, idettack [, inum] [, idamp] [, imaxshake]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>iamp</emphasis> -- Amplitude of output. Note: As these instruments are stochastic, this is only a approximation. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>idettack</emphasis> -- period of time over which all sound is stopped |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>inum</emphasis> (optional) -- The number of beads, teeth, bells, timbrels, etc. If zero, the default value is 512. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | <emphasis>idamp</emphasis> (optional) -- the damping factor, as part of this equation: |
| 46 | <literallayout>damping_amount = 0.998 + (idamp * 0.002)</literallayout> |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | The default <emphasis>damping_amount</emphasis> is 0.997 which means that the default value of <emphasis>idamp</emphasis> is -0.5. The maximum <emphasis>damping_amount</emphasis> is 1.0 (no damping). This means the maximum value for <emphasis>idamp</emphasis> is 1.0. |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | The recommended range for <emphasis>idamp</emphasis> is usually below 75% of the maximum value. |
| 55 | </para> |
| 56 | |
| 57 | <para> |
| 58 | <emphasis>imaxshake</emphasis> (optional) -- amount of energy to add back into the system. The value should be in range 0 to 1. |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>Examples</title> |
| 64 | <para> |
| 65 | Here is an example of the cabasa opcode. It uses the file <ulink url="examples/cabasa.csd"><citetitle>cabasa.csd</citetitle></ulink>. |
| 66 | |
| 67 | <example> |
| 68 | <title>Example of the cabasa opcode.</title> |
| 69 | |
| 70 | |
| 71 | |
| 72 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 73 | <xi:include href="examples-xml/cabasa.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 74 | </example> |
| 75 | </para> |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>See Also</title> |
| 80 | <para> |
| 81 | <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link> |
| 82 | </para> |
| 83 | </refsect1> |
| 84 | |
| 85 | <refsect1> |
| 86 | <title>Credits</title> |
| 87 | <para> |
| 88 | <simplelist> |
| 89 | <member>Author: &nameperry;, part of the PhISEM (Physically Informed Stochastic Event Modeling)</member> |
| 90 | <member>Adapted by &namejohn;</member> |
| 91 | <member>University of Bath, Codemist Ltd.</member> |
| 92 | <member>Bath, UK</member> |
| 93 | </simplelist> |
| 94 | </para> |
| 95 | |
| 96 | <para>New in Csound version 4.07</para> |
| 97 | <para>Added notes by &namerasmus; on May 2002.</para> |
| 98 | </refsect1> |
| 99 | </refentry> |