<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="mac">
  <refmeta>
    <refentrytitle>mac</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>mac</refname>

    <refpurpose>
      Multiplies and accumulates a- and k-rate signals.
      <indexterm id="IndexMac"><primary>mac</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Multiplies and accumulates a- and k-rate signals.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>mac</command> asig1, ksig1 [, asig2] [, ksig2] [, asig3] [, ksig3] [...]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>ksig1, etc.</emphasis> -- k-rate input signals
    </para>

    <para>
      <emphasis>asig1, etc.</emphasis> -- a-rate input signals
    </para>

    <para>
      <emphasis>mac</emphasis> multiplies and accumulates a- and k-rate signals. It is equivalent to:
      <literallayout>
        ar = asig1 + ksig1*asig2 + ksig2+asig3 + ...
      </literallayout>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="maca"><citetitle>maca</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn;</member>
        <member>University of Bath, Codemist, Ltd.</member>
        <member>Bath, UK</member>
        <member>May 1999</member>
      </simplelist>
    </para>

    <para>New in Csound version 3.54</para>
  </refsect1>
</refentry>
