Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 1968

csound-manual-5.13.0-5.fc15.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>jitter</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <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="jacktransport.html" title="jacktransport" />
    <link rel="next" href="jitter2.html" title="jitter2" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">jitter</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="jacktransport.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="jitter2.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="jitter">
      <a id="jitter"></a>
      <div class="titlepage"></div>
      <a id="IndexJitter" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">jitter</span>
        </h2>
        <p>jitter — 
      Generates a segmented line whose segments are randomly generated.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2973669"></a>
        <h2>Description</h2>
        <p>
      Generates a segmented line whose segments are randomly generated.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id2973689"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">kout <span class="command"><strong>jitter</strong></span> kamp, kcpsMin, kcpsMax</pre>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id2973708"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kamp</em></span> -- Amplitude of jitter deviation
    </p>
        <p>
      <span class="emphasis"><em>kcpsMin</em></span> -- Minimum speed of random frequency variations (expressed in cps)
    </p>
        <p>
      <span class="emphasis"><em>kcpsMax</em></span> -- Maximum speed of random frequency variations (expressed in cps)
    </p>
        <p>
      <span class="emphasis"><em>jitter</em></span> generates a segmented line whose segments are randomly generated inside the +kamp and -kamp interval. Duration of each segment is a random value generated according to kcpsmin and kcpsmax values.
    </p>
        <p>
      <span class="emphasis"><em>jitter</em></span> can be used to make more natural and <span class="quote">“<span class="quote">analog-sounding</span>”</span> some static, dull sound. For best results, it is suggested to keep its amplitude moderate.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id2974557"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the jitter opcode. It uses the file <a class="ulink" href="examples/jitter.csd" target="_top"><em class="citetitle">jitter.csd</em></a>.

      </p>
        <div class="example">
          <a id="id2974573"></a>
          <p class="title">
            <b>Example 328. Example of the jitter opcode.</b>
          </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>
<span class="comment">; Audio out   Audio in    No messages</span>
-odac           -iadc     -d     <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o jitter.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="comment">; Initialize the global variables.</span>
<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">kr</span> <span class="op">=</span> 4410
<span class="ohdr">ksmps</span> <span class="op">=</span> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 2

<span class="comment">; Instrument #1 -- plain instrument.</span>
<span class="oblock">instr</span> 1
  aplain <span class="opc">vco</span> 20000, 220, 2, 0.83

  <span class="opc">outs</span> aplain, aplain
<span class="oblock">endin</span>

<span class="comment">; Instrument #2 -- instrument with jitter.</span>
<span class="oblock">instr</span> 2
  <span class="comment">; Create a signal modulated the jitter opcode.</span>
  kamp <span class="opc">init</span> 2
  kcpsmin <span class="opc">init</span> 4
  kcpsmax <span class="opc">init</span> 6
  kj <span class="opc">jitter</span> kamp, kcpsmin, kcpsmax

  aplain <span class="opc">vco</span> 20000, 220, 2, 0.83
  ajitter <span class="opc">vco</span> 20000, 220<span class="op">+</span>kj, 2, 0.83

  <span class="opc">outs</span> aplain, ajitter
<span class="oblock">endin</span>


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

<span class="comment">; Table #1, a sine wave.</span>
<span class="stamnt">f</span> 1 0 16384 10 1

<span class="comment">; Play Instrument #1 for 3 seconds.</span>
<span class="stamnt">i</span> 1 0 3
<span class="comment">; Play Instrument #2 for 3 seconds.</span>
<span class="stamnt">i</span> 2 3 3
<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="id2974611"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="jitter2.html" title="jitter2"><em class="citetitle">jitter2</em></a>,
      <a class="link" href="vibr.html" title="vibr"><em class="citetitle">vibr</em></a>,
      <a class="link" href="vibrato.html" title="vibrato"><em class="citetitle">vibrato</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2974645"></a>
        <h2>Credits</h2>
        <p>Author: Gabriel Maldonado</p>
        <p>Example written by Kevin Conder.</p>
        <p>New in Version 4.15</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="jacktransport.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="jitter2.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">jacktransport </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> jitter2</td>
        </tr>
      </table>
    </div>
  </body>
</html>