BooleanLogic:
Filter:
sc-modeledmodules/plugins/BooleanLogic (extension) | UGens > Generators > Deterministic

BooleanLogic
ExtensionExtension

Wavefonix Boolean Logic model as a UGen

Description

Wavefonix Boolean Logic model as a UGen. Takes two input values and compares them using a boolean operation.

Class Methods

.kr

Arguments:

input1

First comparison input

input2

Second comparison input

operation

Which comparison operation to perform using the available symbols or corresponding integer value:

\and
(default value) returns a 1 if both inputs are 1 and 0 otherwise
\or
returns a 1 if either input is 1
\xor
returns a 1 if only one input is a 1
\nand
inverted "and" gate which returns a 1 unless both inputs are 1
\nor
inverted "or" gate which returns a 1 only if both inputs are 0
\xnor
returns a 1 when both inputs are 1 or both are 0

Returns:

1 or 0

Examples

A synth def using the BooleanLogic function to stutter the playback of a sound file and change where the playback starts on each trigger.