User's Manual

Table Of Contents
Bome MIDI Translator: User's Manual 10 Rules and Variables
| bit-wise OR
Calculate the combination of the left operand's bits OR the
right operand's bits. A given bit is set in the result when it is
set in the left operand, or in the right operand, or in both.
Example:
h0=0x90 | 3
h0 has the value 0x93
Note: variables and calculations use 32-bit signed integer
numbers.
^ bit-wise XOR
Calculate the XOR combination of the left operand's bits with
the right operand's bits. A given bit is set in the result when it
is either set in the left operand or in the right operand (but
not both). Example:
h0=0x90 ^ 13
h0 has the value 157 (0x9D)
Note: variables and calculations use 32-bit signed integer
numbers.
>>
bit-wise shift
right
Shift the left operand's bits to the right by the number of bits
given in the right operand. Left bits are filled with 0 bits.
Example:
ga=0x90 >> 4
ga has the value 9
Note: variables and calculations use 32-bit signed integer
numbers.
Note: shifting right by 1 is equivalent to dividing by 2, shifting
right by 2 divides by 4, then by 8, etc.
<<
bit-wise shift
left
Shift the left operand's bits to the left by the number of bits
given in the right operand. Right bits are filled with 0 bits.
Example:
ga=0xB << 4
ga has the value 0xB0
Note: variables and calculations use 32-bit signed integer
numbers.
Note: shifting left by 1 is equivalent to multiplying with 2,
shifting left by 2 multiplies with 4, then by 8, etc.
10.2.2 Goto
Redirects the processing of the rules to a 'Label' point.
A Label name may be typed in directly, or an existing label goto destination
may be picked from the drop-down box.
Take extra care that you do not create an infinite loop!
10.2.3 Label
This is the destination point in the rules processing that you would like a
Goto point to redirect to. Labels are useful for defining functions in your
rules sets.
(c) 2019 by Bome Software GmbH & Co. KG page 68