cngotoInstrument Control:Program Flow Controlcngotocngoto
Transfers control on every pass when a condition is not true.
Description
Transfers control on every pass when the condition is not true.
Syntaxcngoto condition, label
where label is in the same instrument block and is not an expression, and where condition uses one of the Relational operators (<, =, <=, ==, !=) (and = for convenience, see also under Conditional Values).
Examples
Here is an example of the cngoto opcode. It uses the file cngoto.csd.
Example of the cngoto 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:
kval = 0.000000, kfreq = 880.000000
kval = 0.999732, kfreq = 880.000000
kval = 1.999639, kfreq = 440.000000See alsoProgram Flow ControlCreditsExample written by &namekevin;.New in version 4.21