divzMathematical Operations:Opcode Equivalents of Functionsdivzdivz
Safely divides two numbers.
Syntaxares divz xa, xb, ksubstires divz ia, ib, isubstkres divz ka, kb, ksubst...divz(ka, kb, ksubst)... (no rate restriction)Description
Safely divides two numbers.
Initialization
Whenever b is not zero, set the result to the value a / b; when b is zero, set it to the value of subst instead.
Examples
Here is an example of the divz opcode. It uses the file divz.csd.
Example of the divz 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:
200.000000 / 0.000000 = -1.000000
200.000000 / 66.757370 = 2.995924
200.000000 / 133.514739 = 1.497962See alsoOpcode Equivalents of FunctionsCreditsAuthor: &namejohn; after an idea by &namebarry;Example written by &namekevin;.Functional form available in csound Version 6.00