## Logical Operators

Use this Patch for basic logical operations. Below you can see the full truth table of all supported operations.

#### Inputs

• Operation (see above)
• P (Number,Bool)
• Q (Number,Bool)

#### Outputs

• Result (Number,Bool)

P 0 0 1 1
Q 0 1 0 1
True 1 1 1 1
False 0 0 0 0
P 0 0 1 1
NOT 1 1 0 0
AND 0 0 0 1
OR 0 1 1 1
Implies 1 1 0 1
XOR 0 1 1 0
NAND 1 1 1 0
NOR 1 0 0 0
XNOR 1 0 0 1

## Compare

Compare two values, possible operations are:

• Equal ‘==’
• Not Equal ‘!=’
• Greater than ‘>’
• Greater than or equal ‘>=’
• Less than ‘<‘
• Less than or equal ‘<=’

Please note that all options except equal and not equal require numbers as input.

#### Inputs

• Operation (see above)
• A (all types accepted)
• B (all types accepted)

#### Outputs

• Comparison (Number,Bool)

## String Formatter

Using the String Formatter Patch you can build strings out of placeholders and fixed strings.

#### Examples

```String: %%first%% %%last%% Input 'first': "Max" Input 'last' : "Mustermann" Result: Max Mustermann```

#### Inputs

• Depending on format String (Supports every type)

#### Outputs

• String (String)

## Low Frequency Oscillator

The LFO patch outputs an oscillating number. You can change its duration and type. Using the FPS input you can set how often the output is refreshed in one second.

#### Inputs

• Type (Enum[Sine,Sawtooth,Triangle,Square,Random])
• FPS (Number)
• Duration (Number)

#### Outputs

• Output (Number)

## Time

This Patch simply outputs the current time every second. You may want to format it using the Time Formatter.

#### Outputs

• Output (Date)

## Time Formatter

The Time Formatter formats an incoming date using a specified format. You can see the full specification of the format here.

#### Inputs

• Time (Date)
• Format (String)

#### Outputs

• String (String)

## Max

Outputs the bigger one of the two inputs. If A=1 and B=2, C would be 2.

• A (Number)
• B (Number)

• Max (Number)

## Round

There’s not much to say about this patch. It rounds the input. Example: 1.4 = 1

#### Inputs

• Number (Number)

#### Outputs

• Rounded (Number)

## Multiply

The Multiply Patch does exactly what the name says. You can input two numbers (A and B) and the patch sets the output to C=A*B.

• A (Number)
• B (Number)

• C (Number)

## Math Evaluator

The Math Evaluator is a powerful patch to evaluate complex mathematical terms. There are predefined functions and variables and unknown variables will be added as input to the patch. You can edit the expression in the inspector view.

As this patch builds up on DDMathParser you can view the built in functions here.

#### Inputs

• Depending on Expression (Number)

#### Outputs

• Result (Number)