seqtime Instrument Control:Sensing and Control seqtime seqtime Generates a trigger signal according to the values stored in a table. Description Generates a trigger signal according to the values stored in a table. Syntax ktrig_out seqtime ktime_unit, kstart, kloop, kinitndx, kfn_times Performance ktrig_out -- output trigger signal ktime_unit -- unit of measure of time, related to seconds. kstart -- start index of looped section kloop -- end index of looped section kinitndx -- initial index Note Although kinitndx is listed as k-rate, it is in fact accessed only at init-time. So if you are using a k-rate argument, it must be assigned with init. kfn_times -- number of table containing a sequence of times This opcode handles timed-sequences of groups of values stored into a table. seqtime generates a trigger signal (a sequence of impulses, see also trigger opcode), according to the values stored in the kfn_times table. This table should contain a series of delta-times (i.e. times beetween to adjacent events). The time units stored into table are expressed in seconds, but can be rescaled by means of ktime_unit argument. The table can be filled with GEN02 or by means of an external text-file containing numbers, with GEN23. Note that the kloop index marks the loop boundary and is NOT included in the looped elements. If you want to loop the first four elements, you would set kstart to 0 and kloop to 4. It is possible to start the sequence from a value different than the first, by assigning to kinitndx an index different than zero (which corresponds to the first value of the table). Normally the sequence is looped, and the start and end of loop can be adjusted by modifying kstart and kloop arguments. User must be sure that values of these arguments (as well as kinitndx) correspond to valid table numbers, otherwise Csound will crash (because no range-checking is implementeted). It is possible to disable loop (one-shot mode) by assigning the same value both to kstart and kloop arguments. In this case, the last read element will be the one corresponding to the value of such arguments. Table can be read backward by assigning a negative kloop value. It is possible to trigger two events almost at the same time (actually separated by a k-cycle) by giving a zero value to the corresponding delta-time. First element contained in the table should be zero, if the user intends to send a trigger impulse, it should come immediately after the orchestra instrument containing seqtime opcode. Examples Here is an example of the seqtime opcode. It uses the file seqtime.csd. Example of the seqtime opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See Also GEN02, GEN23, trigseq seqtime2 Credits Author: &namegabriel; November 2002. Added a note about the kinitndx parameter, thanks to &namerasmus;. New in version 4.06 Example by: Tim Mortimer and Andres Cabrera 2007