jazzmutant lemur User Manual
91
To create a local variable, first select the name of the object that will contain the variable,
then click the Expression button. Local variables are referenced using the name of the
object, then a dot, then the variable name. For instance, if we wanted to display the value
of the Env object’s Louie variable in a Monitor object, we would enter the following for
the Monitor’s value property:
then click the Expression button. Local variables are referenced using the name of the
object, then a dot, then the variable name. For instance, if we wanted to display the value
of the Env object’s Louie variable in a Monitor object, we would enter the following for
the Monitor’s value property:
You can also create global variables, which are not tied to specific objects.
• Click on the word Variables at the bottom of the Project Browser window to select it.
• Next, click the Expression button. Enter a name and an expression. Click OK to create
the expression and it will be listed in the Variables folder. Below, we’ve created an
expression called Donald that uses the pow function to raise 2 to the value of the
Env.x variable.
expression called Donald that uses the pow function to raise 2 to the value of the
Env.x variable.
Donald can now be referenced by name in other expressions, whether local or global, or in
the properties of Lemur objects.
the properties of Lemur objects.
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:
functions to use in other Lemur variables and expressions. Here’s how to do it:
• Click the Expression button to create a new Expression. The Expression editor
window opens.