zkwm Zak Patch System zkwm zkwm Writes to a zk variable at k-rate with mixing. Description Writes to a zk variable at k-rate with mixing. Syntax zkwm ksig, kndx [, imix] Initialization imix (optional, default=1) -- indicates if mixing should occur. Performance ksig -- value to be written to the zk location. kndx -- points to the zk location to which to write. zkwm is a mixing opcode, it adds the signal to the current value of the variable. If no imix is specified, mixing always occurs. imix = 0 will cause overwriting like ziw, zkw, and zaw. Any other value will cause mixing. Caution: When using the mixing opcodes ziwm, zkwm, and zawm, care must be taken that the variables mixed to, are zeroed at the end (or start) of each k- or a-cycle. Continuing to add signals to them, can cause their values can drift to astronomical figures. One approach would be to establish certain ranges of zk or za variables to be used for mixing, then use zkcl or zacl to clear those ranges. Examples Here is an example of the zkwm opcode. It uses the file zkwm.csd. Example of the zkwm opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Zak Patch System Credits Author: Robin Whittle Australia May 1997 New in version 3.45 Example written by &namekevin;.