untilInstrument Control:Program Flow Controluntiluntil
A syntactic looping construction.
Description
A syntactic looping construction.
Syntaxuntil condition do
... odPerformance
The statements between the do and
od form the body of a loop which is obeyed
until the conditional becomes true.
Examples
Here is an example of the until construction. It uses the file until.csd.
Example of the until 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 alsoProgram Flow Control: Looping ConstructionsCredits&namejohn;.New in Csound version 5.14 with new parser