
74
When we move the Fader object named Frict, the Lemur transmits what could be
interpreted as two functionally identical OSC messages, one which represents the value of
the fader, and one which represents the value of the friction being controlled by the Fader
object’s x variable. When these messages have the same values, it’s pointless to transmit
both the friction
and
the fader values.
However, let’s say that we don’t want to use the full range of friction available to us. We
might be the kind of person who finds a ball bouncing off a wall to be sort of silly, and we
don’t want to be able to decrease the friction below 0.5.
To achieve this, we will create an Expression to convert the fader value to the restricted
friction value.
•
In the Project Browser, click on the name Andy. It should be selected as shown below.
•
Click the Expression button at the bottom of the Project Browser
An Expression window appears. The upper text field is for the name of the expression.
•
Enter the name MoreFriction, then press the Return or Enter key. The lower text field
will now be active. Enter the expression shown below, which scales the value of the
fader Frict.x by 0.5, then adds an offset of 0.5.