Use Non-Frames Version Previous Page Next Page
Mathematical Functions: Opcode Equivalents of Functions

mac, maca

  ar      mac       asig1, ksig1, asig2[, ksig2, asig3, ...asigN, ksigN]
  ar      maca      asig1, asig2[, asig3, asig4, asig5, ...asigN]

Description

Multiply and accumulate k- and/or a-rate signals.

Performance

ksig1, etc. – k-rate input signals

asig1, etc. – a-rate input signals

mac multiplies and accumulates a- and k-rate signals. It is equivalent to:

  ar = asig1 + ksig1*asig2 + ksig2+asig3 + ...

maca multiplies and accumulates a-rate signals only. It is equivalent to:

  ar = asig1 + asig2*asig3 + asig4+asig5 + ...

Author

John ffitch
University of Bath, Codemist, Ltd.
Bath, UK
May, 1999
New in Csound version 3.54


Use Non-Frames Version Previous Page Next Page
Mathematical Functions: Opcode Equivalents of Functions