zawmZak Patch Systemzawmzawm
Writes to a za variable at a-rate with mixing.
Description
Writes to a za variable at a-rate with mixing.
Syntaxzawm asig, kndx [, imix]Initializationimix (optional, default=1) -- indicates if mixing should occur.
Performanceasig -- value to be written to the za location.
kndx -- points to the za location to which to write.
These opcodes are fast, and always check that the index is within the range of zk or za space. If not, an error is reported, 0 is returned, and no writing takes place.
zawm 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 zawm opcode. It uses the file zawm.csd.
Example of the zawm opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoZak Patch SystemCreditsAuthor: Robin WhittleAustraliaMay 1997New in version 3.45Example written by &namekevin;.