<?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>vmirror</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="vmap.html" title="vmap" /> <link rel="next" href="vmult.html" title="vmult" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">vmirror</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="vmap.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="vmult.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry"> <a id="vmirror"></a> <div class="titlepage"></div> <a id="Indexvmirror" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">vmirror</span> </h2> <p>vmirror — Limiting and Wrapping Vectorial Signals </p> </div> <div class="refsect1"> <a id="idm281472872207688"></a> <h2>Description</h2> <p> 'Reflects' elements of vectorial control signals on thresholds. </p> </div> <div class="refsect1"> <a id="idm281472872164312"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>vmirror</strong></span> ifn, kmin, kmax, ielements</pre> </div> <div class="refsect1"> <a id="idm281472872162248"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ifn</em></span> - number of the table hosting the vector to be processed </p> <p> <span class="emphasis"><em>ielements</em></span> - number of elements of the vector </p> </div> <div class="refsect1"> <a id="idm281472872159736"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kmin</em></span> - minimum threshold value </p> <p> <span class="emphasis"><em>kmax</em></span> - maximum threshold value </p> <p> <span class="emphasis"><em>vmirror</em></span> 'reflects' each element of corresponding vector if it exceeds low or high thresholds.</p> <p>These opcodes are similar to <a class="link" href="limit.html" title="limit"><em class="citetitle">limit</em></a>, <a class="link" href="wrap.html" title="wrap"><em class="citetitle">wrap</em></a> and <a class="link" href="mirror.html" title="mirror"><em class="citetitle">mirror</em></a>, but operate with a vectorial signal instead of with a scalar signal. </p> <p> Result overrides old values of <span class="emphasis"><em>ifn1</em></span>, if these are out of min/max interval. If you want to keep input vector, use <a class="link" href="vcopy.html" title="vcopy"><em class="citetitle">vcopy</em></a> opcode to copy it in another table. </p> <p> All these opcodes are designed to be used together with other opcodes that operate with vectorial signals such as, <a class="link" href="vcella.html" title="vcella"><em class="citetitle">vcella</em></a>, <a class="link" href="adsynt.html" title="adsynt"><em class="citetitle">adsynt</em></a>, <a class="link" href="adsynt2.html" title="adsynt2"><em class="citetitle">adsynt2</em></a> etc. </p> </div> <div class="refsect1"> <a id="idm281472872147336"></a> <h2>Credits</h2> <p>Written by Gabriel Maldonado.</p> <p>New in Csound 5 (Previously available only on CsoundAV)</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="vmap.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="vmult.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">vmap </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> vmult</td> </tr> </table> </div> </body> </html>