User Guide

DSP Code Component
Assignments
Having set up your inputs, outputs and local variables you can then
move on to implementing your DSP algorithm.
To assign a value to a variable or to send it to an output, use the equals
operator =. You can assign fixed values or you can use a regular
expression to calculate the value.
The example opposite shows how you can combine all the elements
discussed so far to create a simple moog filter.
Expressions
Expressions can use a combination of mathematical operations and built in functions. The following represents a complete summary of the
operators and functions that are currently supported.
sin1(a)
cos1(a)
tan1(a)
Mathematical sine, cosine and tangent
The 1 indicates that the input value a is converted to a value in the range 0-1
and not 0 and 2. So 0.5 would be equivalent to and 1.25 would be
equivalent to /2
log10(a)
Logarithm (base 10) of a
max(a,b)
min(a,b)
The numerically largest (max) or smallest (min) of a and b
rndint(a)
Rounds a to the nearest integer value above or below (so 1.4 becomes 1 but
1.6 becomes 2)
*
+
-
/
Standard mathematical operations
176 of 212