Lemur Monitors Lemur Mouse User Manual


 
Working with your Lemur
60
For controlling a Fader via OSC, just set up the OSC Target for the
x value on the OSC panel and produce the OSC messages on the Target side. In
the Fader’s case you would send values between 0 and 1 to the OSC address
/Fader/x to the current IP and port of the Lemur. The exact message format
depends on the Use slashes checkbox
Please make sure that you think about the hierarchy of Objects on
the Lemur. If the Fader is inside of a Container the address would be
/Container/Fader/x.
Note that it’s also possible to switch Interfaces via OSC. Just send an OSC
message in the format “/interface InterfaceName” to the Lemur. In our
case this would look like “/interface 1 Demo” for switching to the first one. For
names that include spaces there is an additional consideration to be made. The
OSC software has to send the name as a single string. This might involve putting it
in quotes in the software. This is the case for Max/MSP.
For more about working with OSC, MIDI and bi-directional control please
have a look at the extensive workshop chapters we offer on our website.
There you’ll learn everything about how the Lemur loves Max/MSP, Reaktor
and other OSC enabled applications.
3.4.6. Defining and Using Functions
In addition to built-in functions and operators, you may define your own
mathematical functions to use in other Lemur variables and expressions.
Here’s how to do it:
Click the Create Expression button to create a new Expression.
The Expression is created at the level of the hierarchy you have currently
selected. If you have an Object selected it will be an Expression local to that
Object. If you have the Global folder selected the Expression will go there.
Type the name of the function and its arguments in parentheses. For
example, to define a function named cubed that takes one argument, you would type:
Click OK and click on the Script panel of the new Expression.
Type in the definition of your function as an expression. You can reference other
variables if desired. The example below just multiplies the function argument a by
itself twice to raise the input to the third power.