while Instrument Control:Program Flow Control while while A syntactic looping construction. Description A syntactic looping construction. Syntax while condition do ... od Performance The statements between the do and od form the body of a loop which is obeyed while the conditional remains true. Examples Here is an example of the while construction. It uses the file while.csd. Example of the while opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Its output should include lines like this: B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.0 new alloc for instr 1: instr 1: p4 = 3.000 instr 1: p4 = 2.000 instr 1: p4 = 1.000 instr 1: p4 = 0.000 instr 1: p4 = -1.000 B 1.000 .. 2.000 T 2.000 TT 2.000 M: 0.0 new alloc for instr 2: instr 2: p4 = 3.000 instr 2: p4 = 2.000 instr 2: p4 = 1.000 instr 2: p4 = 0.000 instr 2: p4 = -1.000 B 2.000 .. 3.000 T 3.000 TT 3.000 M: 0.0 See also Program Flow Control: Looping Constructions Credits &namejohn;. New in Csound version 6.04