macMathematical Operations:Opcode Equivalents of Functionsmacmac
Multiplies and accumulates a- and k-rate signals.
Description
Multiplies and accumulates a- and k-rate signals.
Syntaxares mac ksig1, asig1 [, ksig2] [, asig2] [, ksig3] [, asig3] [...]Performanceksig1, etc. -- k-rate input signals
asig1, etc. -- a-rate input signals
mac multiplies and accumulates a- and k-rate signals. It is equivalent to:
ares = asig1*ksig1 + asig2*ksig2 + asig3*ksig3 + ...
Examples
Here is an example of the mac opcode. It uses the file mac.csd. It is written for *NIX systems, and will generate errors on Windows.
Example of the mac opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoOpcode Equivalents of FunctionsCreditsAuthor: &namejohn;University of Bath, Codemist, Ltd.Bath, UKMay 1999New in Csound version 3.54