k

k — Converts a i-rate parameter to an k-rate value. Or converts an a-rate value to a k-rate value by down-sampling.

Description

Converts an i-rate value to control rate, for example to be used with rnd() and birnd() to generate random numbers at k-rate.

Syntax

k(x) (i-rate args only)
k(x) (a-rate args only)

where the argument within the parentheses may be an expression. 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.

See Also

i a

More information on this opcode: http://www.csounds.com/journal/issue10/CsoundRates.html , written by Andrés Cabrera

Credits

Author: Istvan Varga

New in version Csound 5.00

Author: John ffitch

arate to krate new in version Csound 6.00