loop_geInstrument Control:Program Flow Controlloop_geloop_ge
Looping constructions.
Description
Construction of looping operations.
Syntaxloop_ge indx, idecr, imin, labelloop_ge 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_ge 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 a group example for all loop_xx opcodes, comparing the different loop_ opcodes. It uses the file loop_-group.csd.
Group example of the loop_xx opcodes.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;. 2006New in Csound version 5.01