loop_gtInstrument Control:Program Flow Controlloop_gtloop_gt
Looping constructions.
Description
Construction of looping operations.
Syntaxloop_gt indx, idecr, imin, labelloop_gt kndx, kdecr, kmin, labelInitializationindx -- i-rate variable to count loop.
idecr -- value to decrement the loop.
imin -- minimum value of loop index.
Performancekndx -- k-rate variable to count loop.
kdecr -- value to decrement the loop.
kmin -- minimum value of loop index.
The actions of loop_gt are equivalent to the
code
indx = indx - idecr
if (indx > imin) igoto label
or
kndx = kndx - kdecr
if (kndx > kmin) kgoto label Adviced is to use the 'modern' while or until opcodes for looping constructions.Examples
Here is an example of the loop_gt opcode. It uses the file loop_gt.csd.
Example of the loop_gt opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoProgram Flow Control: Looping Constructions More information on this opcode: http://www.csoundjournal.com/2006summer/controlFlow_part2.html written by Steven Yi,
and in the Floss Manuals: https://flossmanual.csound.com/csound-language/control-structuresCredits&nameistvan;.New in Csound version 5.01