Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 2591

csound-doc-5.19.01-10.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>sleighbells</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="sinsyn.html" title="sinsyn" />
    <link rel="next" href="slider16.html" title="slider16" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">sleighbells</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="sinsyn.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="slider16.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="sleighbells">
      <a id="sleighbells"></a>
      <div class="titlepage"></div>
      <a id="IndexSleighbells" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">sleighbells</span>
        </h2>
        <p>sleighbells — 
      Semi-physical model of a sleighbell sound.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp43034800"></a>
        <h2>Description</h2>
        <p>
      <span class="emphasis"><em>sleighbells</em></span> is a semi-physical model of a sleighbell 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.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp43043288"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ares <span class="command"><strong>sleighbells</strong></span> kamp, idettack [, inum] [, idamp] [, imaxshake] [, ifreq] \
      [, ifreq1] [, ifreq2]</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp43044560"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>idettack</em></span> -- period of time over which all sound is stopped
    </p>
        <p>
      <span class="emphasis"><em>inum</em></span> (optional) -- The number of beads, teeth, bells, timbrels, etc.  If zero, the default value is 32.
    </p>
        <p>
      <span class="emphasis"><em>idamp</em></span> (optional) -- the damping factor, as part of this equation:
      </p>
        <div class="literallayout">
          <p>damping_amount = 0.9994 + (idamp * 0.002)</p>
        </div>
        <p>
    </p>
        <p>
      The default <span class="emphasis"><em>damping_amount</em></span> is 0.9994 which means that the default value of <span class="emphasis"><em>idamp</em></span> is 0. The maximum <span class="emphasis"><em>damping_amount</em></span> is 1.0 (no damping). This means the maximum value for <span class="emphasis"><em>idamp</em></span> is 0.03.
    </p>
        <p>
      The recommended range for <span class="emphasis"><em>idamp</em></span> is usually below 75% of the maximum value.
    </p>
        <p>
      <span class="emphasis"><em>imaxshake</em></span> (optional, default=0) -- amount of energy to add back into the system. The value should be in range 0 to 1.
    </p>
        <p>
      <span class="emphasis"><em>ifreq</em></span> (optional) -- the main resonant frequency. The default value is 2500.
    </p>
        <p>
      <span class="emphasis"><em>ifreq1</em></span> (optional) -- the first resonant frequency. The default value is 5300.
    </p>
        <p>
      <span class="emphasis"><em>ifreq2</em></span> (optional) -- the second resonant frequency. The default value is 6500.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp43160448"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kamp</em></span> -- Amplitude of output.  Note: As these instruments are stochastic, this is only an approximation.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp43161480"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the sleighbells opcode. It uses the file <a class="ulink" href="examples/sleighbells.csd" target="_top"><em class="citetitle">sleighbells.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp43162480"></a>
          <p class="title">
            <strong>Example 778. Example of the sleighbells opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac      <span class="comment">;;;realtime audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o sleighbells.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 2
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1


<span class="oblock">instr</span> 1

idamp <span class="op">=</span> p4
asig  <span class="opc">sleighbells</span> .7, 0.01, 32, idamp
      <span class="opc">outs</span> asig, asig

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>

<span class="stamnt">i</span> 1 0.00 0.25 0	<span class="comment">;short sound</span>
<span class="stamnt">i</span> 1 0.30 0.25
<span class="stamnt">i</span> 1 0.60 0.25
<span class="stamnt">i</span> 1 0.90 0.25
<span class="stamnt">i</span> 1 1.20 0.25
<span class="stamnt">i</span> 1 1.50 1   .3	<span class="comment">;longer sound</span>
<span class="stamnt">i</span> 1 1.80 0.25 0	<span class="comment">;short sound again</span>
<span class="stamnt">i</span> 1 2.10 0.25
<span class="stamnt">i</span> 1 2.40 0.25
<span class="stamnt">i</span> 1 2.70 0.25
<span class="stamnt">i</span> 1 3.00 0.25
<span class="stamnt">e</span>

<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp43164792"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="bamboo.html" title="bamboo"><em class="citetitle">bamboo</em></a>,
      <a class="link" href="dripwater.html" title="dripwater"><em class="citetitle">dripwater</em></a>,
      <a class="link" href="guiro.html" title="guiro"><em class="citetitle">guiro</em></a>,
      <a class="link" href="tambourine.html" title="tambourine"><em class="citetitle">tambourine</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp43167304"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Perry Cook, part of the PhISEM (Physically Informed Stochastic Event Modeling)</td>
          </tr>
          <tr>
            <td>Adapted by John ffitch</td>
          </tr>
          <tr>
            <td>University of Bath, Codemist Ltd.</td>
          </tr>
          <tr>
            <td>Bath, UK</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound version 4.07</p>
        <p>Added notes by Rasmus Ekman on May 2002.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="sinsyn.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="slider16.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">sinsyn </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> slider16</td>
        </tr>
      </table>
    </div>
  </body>
</html>