tablecopyTable Control:Read/Write Operationstablecopytablecopy
Simple, fast table copy opcode.
Description
Simple, fast table copy opcode.
Syntaxtablecopy kdft, ksftPerformancekdft -- Destination function table.
ksft -- Number of source function table.
tablecopy -- Simple, fast table copy opcode. Takes the table length from the destination table, and reads from the start of the source table. For speed reasons, does not check the source length - just copies regardless - in wrap mode. This may read through the source table several times. A source table with length 1 will cause all values in the destination table to be written to its value.
tablecopy cannot read or write the guardpoint. To read it use table, with ndx = the table length. Likewise use table write to write it.
To write the guardpoint to the value in location 0, use tablegpw.
This is primarily to change function tables quickly in a real-time situation.
Examples
Here is an example of the tablecopy opcode. It uses the file tablecopy.csd.
Example of the tablecopy opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include a lines like these:
i1 5.00000
i1 3.00000
i1 2.00000
i1 4.00000
i1 7.00000
i1 6.00000
i1 7.00000See alsoRead/Write OperationsCreditsAuthor: Robin WhittleAustraliaMay 1997New in version 3.47