Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About This Guide

This Application Note explains the use of the LogicCompareNInt32 module in the Audio Weaver Application.

The LogicCompareNInt32 Module

The LogicCompareNInt32 module can be found in Sound Design/Control folder or by using the search window in the module browser.

...

  • There are two corresponding input channels.

  • There is one comparison that can be one of the following choices. The number in parentheses is the opcode that should be entered into the third column of the compareConfig array.

    • EQUAL (0)

    • NOTEQUAL (1)

    • LESSTHAN (2)

    • LESSOREQUAL (3)

    • GREATERTHAN (4)

    • GREATERTHANOREQUAL (5)

    • CONST 1 (6)

    • CONST 0 (7)

  • The output of every comparison block arrives at an output channel.

  • There is no internal series connection between any of the comparison blocks although a single input pin can route to multiple comparison block inputs.

Configuring the module as a single comparator

The simplest function, which is a single comparison, requires a single row in the compareConfig array.

...

If you really want just a single comparison, use the LogicCompareInt32 module. LogicCompareNInt32’s power is in representing several comparisons efficiently.

Multiple Comparisons

Two comparisons of two inputs each are implemented below. Although not shown here, it is possible to use the same input pin in multiple expressions. You can add more comparisons by increasing numComps.

...