<?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>tablexseg</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="tablexkt.html" title="tablexkt" /> <link rel="next" href="tabmorph.html" title="tabmorph" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">tablexseg</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="tablexkt.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="tabmorph.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="tablexseg"> <a id="tablexseg"></a> <div class="titlepage"></div> <a id="IndexTablexseg" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">tablexseg</span> </h2> <p>tablexseg — Creates a new function table by making exponential segments between values in stored function tables. </p> </div> <div class="refsect1" title="Description"> <a id="idp48186792"></a> <h2>Description</h2> <p> <span class="emphasis"><em>tablexseg</em></span> is like <a class="link" href="expseg.html" title="expseg"><em class="citetitle">expseg</em></a> but interpolate between values in a stored function tables. The result is a new function table passed internally to any following <a class="link" href="vpvoc.html" title="vpvoc"><em class="citetitle">vpvoc</em></a> which occurs before a subsequent <span class="emphasis"><em>tablexseg</em></span> (much like <a class="link" href="lpread.html" title="lpread"><em class="citetitle">lpread</em></a>/<a class="link" href="lpreson.html" title="lpreson"><em class="citetitle">lpreson</em></a> pairs work). The uses of these are described below under <span class="emphasis"><em>vpvoc</em></span>. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp48192280"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>tablexseg</strong></span> ifn1, idur1, ifn2 [, idur2] [, ifn3] [...]</pre> </div> <div class="refsect1" title="Initialization"> <a id="idp48193344"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ifn1</em></span>, <span class="emphasis"><em>ifn2</em></span>, <span class="emphasis"><em>ifn3</em></span>, etc. -- function table numbers. <span class="emphasis"><em>ifn1</em></span>, <span class="emphasis"><em>ifn2</em></span>, and so on, must be the same size. </p> <p> <span class="emphasis"><em>idur1</em></span>, <span class="emphasis"><em>idur2</em></span>, etc. -- durations during which interpolation from one table to the next will take place. </p> </div> <div class="refsect1" title="Examples"> <a id="idp48248880"></a> <h2>Examples</h2> <p> Here is an example of the tablexseg opcode. It uses the file <a class="ulink" href="examples/tablexseg.csd" target="_top"><em class="citetitle">tablexseg.csd</em></a>. </p> <div class="example"> <a id="idp48249872"></a> <p class="title"> <strong>Example 861. Example of the tablexseg 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"><CsoundSynthesizer></span> <span class="csdtag"><CsOptions></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 tablexseg.wav -W ;;; for file output any platform</span> <span class="csdtag"></CsOptions></span> <span class="csdtag"><CsInstruments></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 <span class="comment">; analyze "fox.wav" with PVANAL first</span> iend <span class="op">=</span> p4 ktime <span class="opc">line</span> 0, p3, iend <span class="opc">tablexseg</span> p5, p3, p6 <span class="comment">;morph from table 1</span> asig <span class="opc">vpvoc</span> ktime, 1, "fox.pvx" <span class="comment">;to table 2</span> <span class="opc">outs</span> asig<span class="op">*</span>3, asig<span class="op">*</span>3 <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="stamnt">f</span> 1 0 512 9 .5 1 0 <span class="stamnt">f</span> 2 0 512 5 1 60 0.01 390 0.01 62 1 <span class="stamnt">i</span> 1 0 5 2.7 1 2 <span class="stamnt">e</span> <span class="csdtag"></CsScore></span> <span class="csdtag"></CsoundSynthesizer></span> </pre> </div> </div> <p><br class="example-break" /> </p> </div> <div class="refsect1" title="See Also"> <a id="idp48252152"></a> <h2>See Also</h2> <p> <a class="link" href="pvbufread.html" title="pvbufread"><em class="citetitle">pvbufread</em></a>, <a class="link" href="pvcross.html" title="pvcross"><em class="citetitle">pvcross</em></a>, <a class="link" href="pvinterp.html" title="pvinterp"><em class="citetitle">pvinterp</em></a>, <a class="link" href="pvread.html" title="pvread"><em class="citetitle">pvread</em></a>, <a class="link" href="tableseg.html" title="tableseg"><em class="citetitle">tableseg</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="idp48255088"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Richard Karpen</td> </tr> <tr> <td>Seattle, WA USA</td> </tr> <tr> <td>1997</td> </tr> </table> <p> </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="tablexkt.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="tabmorph.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">tablexkt </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> tabmorph</td> </tr> </table> </div> </body> </html>