<?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_lt</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_le.html" title="loop_le" /> <link rel="next" href="loopseg.html" title="loopseg" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">loop_lt</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="loop_le.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="loopseg.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="loop_lt"> <a id="loop_lt"></a> <div class="titlepage"></div> <a id="IndexLoop" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">loop_lt</span> </h2> <p>loop_lt — Looping constructions. </p> </div> <div class="refsect1" title="Description"> <a id="id2991992"></a> <h2>Description</h2> <p> Construction of looping operations. </p> </div> <div class="refsect1" title="Syntax"> <a id="id2992003"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>loop_lt</strong></span> indx, incr, imax, label</pre> <pre class="synopsis"><span class="command"><strong>loop_lt</strong></span> kndx, kncr, kmax, label</pre> </div> <div class="refsect1" title="Initialization"> <a id="id2992230"></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="id2992259"></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_lt</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="id2992922"></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_le.html" title="loop_le"><em class="citetitle">loop_le</em></a>. </p> </div> <div class="refsect1" title="Credits"> <a id="id2992956"></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_le.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="loopseg.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">loop_le </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> loopseg</td> </tr> </table> </div> </body> </html>