11-32
Calculated Expression: Enter a computational expression that refers
to other aliases, such as VocalLevel + 18. This allows one widget to take
on a value that is determined by (but not necessarily identical to) the
value of one or more other widgets. Expressions of this form are not
inverted, so this deÞnes a one-way relationship between the other
aliases and the widget. Activating this widget will have no effect on any
alias value and, therefore, no effect on other widgets.
Assignment: Enter an assignment statement, such as OverdubLevel =
VocalLevel + 18. This is a combination of the above two methods. The
alias OverdubLevel behaves like a normal two-way alias, but if the value
of the expression ever changes, the alias and the widget will both take on
the new value immediately. This provides a two-way connection between
the widget and the alias and a one-way relationship from any aliases
referenced in the expression to the widget alias.
All computations are performed using signed 32-bit integer quantities.
The only exceptions are the bitwise AND, OR, and XOR operations,
which use unsigned 32-bit integer computation.
Expressions and formulas are written in a syntax that is adapted from
the C programming language. They can be used to perform calculations,
make decisions, and pack and unpack data values in MIDI messages.
The following operators are currently deÞned:
Operator... Meaning...
+ addition
- subtraction
* multiplication
/ division
% modulus
& bitwise AND
| bitwise OR
~ bitwise exclusive OR (XOR)
( ) parentheses for controlling the order of evaluation
? : conditional operator
== equality