
 OpenMusic DocumentationHiérarchie de section : OM 6.6 User Manual > Visual Programming II > Iterations: OMLoop > Iterators > Infinite Loops
OpenMusic DocumentationHiérarchie de section : OM 6.6 User Manual > Visual Programming II > Iterations: OMLoop > Iterators > Infinite LoopsIf no iterator is used, or if an iterator is used the wrong way, OMLoop gets stuck and potentially goes on forever.
| We want to generate four random numbers between 1 and 4. Instead of using forloop to define the number of steps of the iteration, we have used repeat-n : OMLoop will never end and generate four random numbers an infinite number of times... |  | 
|  | An abort dialogue window pops up after a while (by default, 500 000 loops). To stop the iteration, choose  | 
Type Cmd + SHIFT + a to abort the ongoing calculation.
