ftsetTable Control:Read/Write Operationsftsetftset
Sets multiple elements of a table to a given value
Description
Sets multiple elements of a table to a given value. All elements of the table, or a slice
(start:end:step) can be set at once. If all parameters are i-time variables, ftset will
run only at init-time. Otherwise ftset is executed at each cycle.
Plugin opcode in emugensSyntaxftset ktablenum, kvalue [, kstart=0, kend=0, kstep=1 ]ftset itablenum, ivalue [, istart=0, iend=0, istep=1 ]InitializationPerformancektablenum -- the number of the table to be modified
kvalue -- the value to write to the table
kstart -- the start index to modify (defaults to 0)
kend -- the end index to modify. Defaults to 0, which indicates the
end of the table. A negative index can be used to count from the end, so for example -1
will modifiy the table without changing the last element.
kstep -- the increment to use between modified indexes. Defaults to
1, which means to modify every element between start and end
Examples
Here is an example of the ftset opcode. It uses the file ftset.csd.
Example of the ftset opcode.See the sections Real-time
Audio and Command Line
Flags for more information on using command line flags.See alsoRead/Write OperationsCreditsBy: &nameeduardo; 2020