Sophie

Sophie

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

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>temposcal</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="tempo.html" title="tempo" />
    <link rel="next" href="tempoval.html" title="tempoval" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">temposcal</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="tempo.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="tempoval.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="temposcal">
      <a id="temposcal"></a>
      <div class="titlepage"></div>
      <a id="IndexTemposcal" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">temposcal</span>
        </h2>
        <p>temposcal — 
Phase-locked vocoder processing with onset detection/processing, 'tempo-scaling'.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3291037"></a>
        <h2>Description</h2>
        <p>
<span class="emphasis"><em>temposcal</em></span> implements phase-locked vocoder processing using function tables
containing sampled-sound sources, with <a class="link" href="GEN01.html" title="GEN01"><em class="citetitle">GEN01</em></a>, and
<span class="emphasis"><em>temposcal</em></span> will accept deferred allocation tables.
  </p>
        <p>
This opcode allows for time and frequency-independent scaling. Time is advanced internally, but controlled by a tempo scaling parameter; when an onset is detected, timescaling is momentarily stopped to avoid smearing of attacks. The quality of the effect is generally improved with phase locking switched on. 
  </p>
        <p>
<span class="emphasis"><em>temposcal</em></span> will also scale pitch, independently of frequency, using a transposition factor (k-rate).
  </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3291870"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">asig <span class="command"><strong>temposcal</strong></span> ktimescal,kamp,kpitch,ktab,klock[,ifftsize, idecim, ithresh]
      </pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3291891"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ifftsize</em></span> -- FFT size (power-of-two), defaults to 2048.
    </p>
        <p>
      <span class="emphasis"><em>idecim</em></span> -- decimation, defaults to 4 (meaning hopsize = fftsize/4)
    </p>
        <p>
      <span class="emphasis"><em>idbthresh</em></span> -- threshold based on dB power spectrum ratio between two successive windows. A detected ratio above it will cancel timescaling momentarily, to avoid smearing (defaults to 1)
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3291929"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>ktimescal</em></span> -- timescaling ratio, &lt; 1 stretch, &gt; 1 contract.
    </p>
        <p>
      <span class="emphasis"><em>kamp</em></span> -- amplitude scaling
    </p>
        <p>
      <span class="emphasis"><em>kpitch</em></span> -- grain pitch scaling (1=normal pitch, &lt; 1 lower, &gt; 1 higher; negative, backwards)
    </p>
        <p>
      <span class="emphasis"><em>klock</em></span> -- 0 or 1, to switch phase-locking on/off
    </p>
        <p>
      <span class="emphasis"><em>ktab</em></span> -- source signal function table. Deferred-allocation tables (see
      <a class="link" href="GEN01.html" title="GEN01"><em class="citetitle">GEN01</em></a>) are accepted, but the opcode
      expects a mono source. Tables can be switched at k-rate.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id3291991"></a>
        <h2>Examples</h2>
        <p>
      </p>
        <div class="example">
          <a id="id3291998"></a>
          <p class="title">
            <b>Example 624. Example</b>
          </p>
          <div class="example-contents">
            <pre class="programlisting">
		
idur = p3
ilock = p4
itab = 1
ipitch = 1
iamp = 0.8
ktime linseg 0.3, p3/2, 0.8, p3/2, 0.3

a1 temposcal ktime,iamp,ipitch,itab,ilock

   out a1
    

   </pre>
          </div>
        </div>
        <p><br class="example-break" />

    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3292018"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Victor Lazzarini</td>
          </tr>
          <tr>
            <td>February 2010</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New plugin in version 5.13</p>
        <p>February 2005.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="tempo.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="tempoval.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">tempo </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> tempoval</td>
        </tr>
      </table>
    </div>
  </body>
</html>