timesInstrument Control:Time Readingtimestimes
Read absolute time in seconds.
Description
Read absolute time, in seconds, since the start of the performance.
Syntaxires timeskres timesPerformance
Time in seconds is available with times. This would return 0.5 after half a second.
times can both produce a k-rate variable for output. There are no input parameters.
times can also operate at the start of the instance of the instrument. It produces an i-rate variable (starting with i or gi) as its output.
Examples
Here is an example of the times opcode. It uses the file times_complex.csd.
Example of the times 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 these:
new alloc for instr again:
instance = 1, start = 0.000000, duration = 0.650439
new alloc for instr fx_processor:
instance = 2, start = 0.650884, duration = 0.411043
new alloc for instr fx_processor:
instance = 3, start = 1.061587, duration = 0.231085
new alloc for instr fx_processor:
instance = 4, start = 1.292336, duration = 0.543473
new alloc for instr fx_processor:
instance = 5, start = 1.835828, duration = 1.777097
See alsoTime ReadingCreditsAuthor: Robin WhittleAustraliaMay 1997