<?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>passign</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="partikkelsync.html" title="partikkelsync" /> <link rel="next" href="pcauchy.html" title="pcauchy" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">passign</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="partikkelsync.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="pcauchy.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="passign"> <a id="passign"></a> <div class="titlepage"></div> <a id="IndexPassign" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">passign</span> </h2> <p>passign — Assigns a range of p-fields to ivariables. </p> </div> <div class="refsect1" title="Description"> <a id="idp35500776"></a> <h2>Description</h2> <p> Assigns a range of p-fields to ivariables. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp35501432"></a> <h2>Syntax</h2> <pre class="synopsis"> ivar1, ... <span class="command"><strong>passign</strong></span> [istart]</pre> </div> <div class="refsect1" title="Initialisation"> <a id="idp35511864"></a> <h2>Initialisation</h2> <p> The optional argument <span class="emphasis"><em>istart</em></span> gives the index of the first p-field to assign. The default value is 1, corresponding to the instrument number. </p> <p> One of the variables can be a string variable, in which case it is assigned the only string parameter, if there is one, or an error otherwise. </p> </div> <div class="refsect1" title="Performance"> <a id="idp35513216"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>passign</em></span> transfers the instrument p-fields to instrument variables, starting with the one identified by the <span class="emphasis"><em>istart</em></span> argument. There should not be more variables than p-fields, but there may be fewer. </p> </div> <div class="refsect1" title="See Also"> <a id="idp35514448"></a> <h2>See Also</h2> <p> <a class="link" href="assign.html" title="="><em class="citetitle">assign</em></a>, </p> </div> <div class="refsect1" title="Example"> <a id="idp35555432"></a> <h2>Example</h2> <p> Here is an example of the passign opcode. It uses the file <a class="ulink" href="examples/passign.csd" target="_top"><em class="citetitle">passign.csd</em></a>. </p> <div class="example"> <a id="idp35556408"></a> <p class="title"> <strong>Example 570. A variant of toot8.csd that uses passign.</strong> </p> <div class="example-contents"> <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 real audio input is needed too</span> <span class="comment">; For Non-realtime ouput leave only the line below:</span> <span class="comment">; -o passign.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> 8 idur,iamp,iskiptime,iattack,irelease,irvbtime,irvbgain <span class="opc">passign</span> 3 kamp <span class="opc">linen</span> iamp, iattack, idur, irelease asig <span class="opc">soundin</span> "fox.wav", iskiptime arampsig <span class="op">=</span> kamp <span class="op">*</span> asig aeffect <span class="opc">reverb</span> asig, irvbtime arvbretrn <span class="op">=</span> aeffect <span class="op">*</span> irvbgain <span class="comment">;mix dry & wet signals</span> <span class="opc">outs</span> arampsig <span class="op">+</span> arvbretrn, arampsig <span class="op">+</span> arvbretrn <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="comment">;ins strt dur amp skip atk rel rvbt rvbgain</span> <span class="stamnt">i</span>8 0 4 .3 0 .03 .1 1.5 .3 <span class="stamnt">i</span>8 4 4 .3 1.6 .1 .1 3.1 .7 <span class="stamnt">i</span>8 8 4 .3 0 .5 .1 2.1 .2 <span class="stamnt">i</span>8 12 4 .4 0 .01 .1 1.1 .1 <span class="stamnt">i</span>8 16 4 .5 0.1 .01 .1 0.1 .1 <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="Credits"> <a id="idp35557432"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: John ffitch</td> </tr> <tr> <td>University of Bath, Codemist Ltd.</td> </tr> <tr> <td>Bath, UK</td> </tr> <tr> <td>December 2009</td> </tr> </table> <p> </p> <p>New in version 5.12</p> <p> </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="partikkelsync.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="pcauchy.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">partikkelsync </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> pcauchy</td> </tr> </table> </div> </body> </html>