<?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>vincr</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="vibrato.html" title="vibrato" /> <link rel="next" href="vlimit.html" title="vlimit" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">vincr</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="vibrato.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="vlimit.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="vincr"> <a id="vincr"></a> <div class="titlepage"></div> <a id="IndexVincr" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">vincr</span> </h2> <p>vincr — Accumulates audio signals. </p> </div> <div class="refsect1" title="Description"> <a id="id3338522"></a> <h2>Description</h2> <p> <span class="emphasis"><em>vincr</em></span> increments one audio variable with another signal, i.e. it accumulates output. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3338273"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>vincr</strong></span> accum, aincr</pre> </div> <div class="refsect1" title="Performance"> <a id="id3338290"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>accum</em></span> -- audio-rate accumulator variable to be incremented </p> <p> <span class="emphasis"><em>aincr</em></span> -- incrementing signal </p> <p> <span class="emphasis"><em>vincr</em></span> (variable increment) and <a class="link" href="clear.html" title="clear"><em class="citetitle">clear</em></a> are intended to be used together. <span class="emphasis"><em>vincr</em></span> stores the result of the sum of two audio variables into the first variable itself (which is intended to be used as an accumulator in polyphony). The accumulator is typically a global variable that is used to combine signals from several sources (different instruments or instrument instances) for further processing (for example, via a global effect that reads the accumulator) or for outputting the combined signal by some means other than one of the <span class="emphasis"><em>out</em></span> opcodes (eg. via the <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> opcode). After the accumulator is used, the accumulator variable should be set to zero by means of the <span class="emphasis"><em>clear</em></span> opcode (or it will explode). </p> </div> <div class="refsect1" title="Examples"> <a id="id3339269"></a> <h2>Examples</h2> <p> See the <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> opcode for an example. </p> </div> <div class="refsect1" title="See Also"> <a id="id3339288"></a> <h2>See Also</h2> <p> <a class="link" href="clear.html" title="clear"><em class="citetitle">clear</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="id3339305"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Gabriel Maldonado</td> </tr> <tr> <td>Italy</td> </tr> <tr> <td>1999</td> </tr> </table> <p> </p> <p>New in Csound version 3.56</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="vibrato.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="vlimit.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">vibrato </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> vlimit</td> </tr> </table> </div> </body> </html>