<?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>loop_le</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="loop_gt.html" title="loop_gt" /> <link rel="next" href="loop_lt.html" title="loop_lt" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">loop_le</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="loop_gt.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="loop_lt.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="loop_le"> <a id="loop_le"></a> <div class="titlepage"></div> <a id="Indexloop_le" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">loop_le</span> </h2> <p>loop_le — Looping constructions. </p> </div> <div class="refsect1" title="Description"> <a id="id2991447"></a> <h2>Description</h2> <p> Construction of looping operations. </p> </div> <div class="refsect1" title="Syntax"> <a id="id2991458"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>loop_le</strong></span> indx, incr, imax, label</pre> <pre class="synopsis"><span class="command"><strong>loop_le</strong></span> kndx, kncr, kmax, label</pre> </div> <div class="refsect1" title="Initialization"> <a id="id2991683"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>indx</em></span> -- i-rate variable to count loop. </p> <p> <span class="emphasis"><em>incr</em></span> -- value to increment the loop. </p> <p> <span class="emphasis"><em>imax</em></span> -- maximum value of loop index. </p> </div> <div class="refsect1" title="Performance"> <a id="id2991712"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kndx</em></span> -- k-rate variable to count loop. </p> <p> <span class="emphasis"><em>kncr</em></span> -- value to increment the loop. </p> <p> <span class="emphasis"><em>kmax</em></span> -- maximum value of loop index. </p> <p> The actions of <span class="command"><strong>loop_le</strong></span> are equivalent to the code </p> <pre class="programlisting"> indx <span class="op">=</span> indx <span class="op">+</span> incr <span class="opc">if</span> (indx <span class="op"><=</span> imax) <span class="opc">igoto</span> label</pre> <p> or </p> <pre class="programlisting"> kndx <span class="op">=</span> kndx <span class="op">+</span> kncr <span class="opc">if</span> (kndx <span class="op"><=</span> kmax) <span class="opc">kgoto</span> label</pre> <p> </p> </div> <div class="refsect1" title="See Also"> <a id="id2992372"></a> <h2>See Also</h2> <p> <a class="link" href="loop_ge.html" title="loop_ge"><em class="citetitle">loop_ge</em></a>, <a class="link" href="loop_gt.html" title="loop_gt"><em class="citetitle">loop_gt</em></a> and <a class="link" href="loop_lt.html" title="loop_lt"><em class="citetitle">loop_lt</em></a>. </p> </div> <div class="refsect1" title="Credits"> <a id="id2992406"></a> <h2>Credits</h2> <p>Istvan Varga.</p> <p>New in Csound version 5.01</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="loop_gt.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="loop_lt.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">loop_gt </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> loop_lt</td> </tr> </table> </div> </body> </html>