Inspired by Andrew Belt’s Facebook post about fuzzy logic, I’ve released two new modules: Fuzzy Logic Z and Fuzzy Logic H. Each module combines two input signals in a variety of ways by applying fuzzy logic operators.

Fuzzy Logic Z’s operators are based on the fuzzy logic operators defined by Lofti Zadeh. These are the most commonly used forms of the operators. Z stands for Zadeh.

Fuzzy Logic H has the same operators, but defines them in a different, less common way, based on hyperbolic paraboloids. H stands for Hyperbolic.

There are 16 possible boolean operators with two operands. Some of them are uninteresting for combining signals—they emit either a constant or one of the inputs unchanged. My modules don’t have those operators. I also omitted two other operators, each producing the negation of one of the inputs, for space reasons.

So what’s left are the ten most interesting two-input logic operators, implemented in two different fuzzy forms.

For many inputs signals, the corresponding operators in each module will give a somewhat similar output. In the input signals I tried (simple sine, triangle, and saw waves), the H operators appear to produce slightly rounder transitions than the Z operators when the input signals change direction.

I have no idea how you’ll use this musically.

Enjoy!