i

i — Returns an init-type equivalent of a k-rate argument, or directly returns an i-rate argument.

Description

Returns an init-type equivalent of a k-rate argument or array element or directly returns an i-rate argument.

Syntax

i(x) (control-rate or init-rate arg)
i(karray,index1, ...) (k-array with indices)

Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression.

[Note] Note

Using i() with a k-rate expression argument is not recommended, and can produce unexpected results.

To get the value from an array element reliably the second form should be used.

See Also

a, k, abs, exp, frac, int, log, log10, sqrt

More information on this opcode can be found in the Csound Journal, issue 10, written by Andrés Cabrera.

Credits

i-rate arg version of function new since 5.14

Array format new in version 6.08