<?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>subinstrinit</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <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="subinstr.html" title="subinstr" /> <link rel="next" href="sum.html" title="sum" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">subinstrinit</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="subinstr.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="sum.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry"> <a id="subinstrinit"></a> <div class="titlepage"></div> <a id="IndexSubinstrinit" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">subinstrinit</span> </h2> <p>subinstrinit — Creates and runs a numbered instrument instance at init-time. </p> </div> <div class="refsect1"> <a id="idm281472882886328"></a> <h2>Description</h2> <p> Same as <a class="link" href="subinstr.html" title="subinstr"><em class="citetitle">subinstr</em></a>, but init-time only and has no output arguments. </p> </div> <div class="refsect1"> <a id="idm281472882884120"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>subinstrinit</strong></span> instrnum [, p4] [, p5] [...]</pre> <pre class="synopsis"><span class="command"><strong>subinstrinit</strong></span> "insname" [, p4] [, p5] [...]</pre> </div> <div class="refsect1"> <a id="idm281472882813160"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>instrnum</em></span> -- Number of the instrument to be called. </p> <p> <span class="emphasis"><em><span class="quote">“<span class="quote">insname</span>”</span></em></span> -- A string (in double-quotes) representing a named instrument. </p> <p> <span class="emphasis"><em>p4, p5, ...</em></span> -- Additional input values the are mapped to the called instrument p-fields, starting with p4. </p> <p> The called instrument's p2 and p3 values will be identical to the host instrument's values. While the host instrument can <a class="link" href="ControlDurctl.html" title="Duration Control Statements"><em class="citetitle">control its own duration</em></a>, any such attempts inside the called instrument will most likely have no effect. </p> </div> <div class="refsect1"> <a id="idm281472882808056"></a> <h2>See Also</h2> <p> <a class="link" href="event.html" title="event"><em class="citetitle">event</em></a>, <a class="link" href="schedule.html" title="schedule"><em class="citetitle">schedule</em></a>, <a class="link" href="subinstr.html" title="subinstr"><em class="citetitle">subinstr</em></a> </p> </div> <div class="refsect1"> <a id="idm281472882804056"></a> <h2>Credits</h2> <p>New in version 4.23</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="subinstr.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="sum.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">subinstr </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> sum</td> </tr> </table> </div> </body> </html>