timeinstk
Read absolute time in k-rate cycles, since the start of aninstance of an instrument.
Called at both i-time as well as k-time. NB: the returned value at k-time starts at 1
Syntax
Performance
timeinstk is for time in k-rate cycles. So with:
then after half a second, the timeinstk opcode would report 3150. It will always report an integer.
timeinstk produces a k-rate variable for output. There are no input parameters.
timeinstk is similar to timek except it returns the time since the start of this instance of the instrument.
Examples
Here is an example of the timeinstk opcode. It uses the file timeinstk.csd.
Its output should include lines like this:
k1 = 1.000000 samples
k1 = 2205.000000 samples
k1 = 4410.000000 samples
k1 = 6615.000000 samples
k1 = 8820.000000 samples
See also
Credits
Author: Robin Whittle
Australia
May 1997
Example written by Kevin Conder.