Knowing Your Lemur
12
1.2.3. Modules
Additionally, you can import pre-built parts of project as Modules. A
Module is a set of reusable interface elements. A module can feature objects,
containers and even interfaces. A library of modules is provided on the Installation
CD, and more modules are available from JazzMutant’s website.
You can also create your own user library of reusable items. Indeed, any
part of a Lemur Interface can be exported as a Module for future use in other
Projects. Due to this feature you never have to develop the same thing twice. Just
save your building blocks as Modules to produce a growing library of re-useable,
object-oriented Interface parts. The User Library on the JazzMutant website also is
a great resource for stacking up on handy Interface elements.
1.2.4. Variables
Variables are the mathematical basis of the Object’s output. Any
Object has its own set of Variables that change when you touch it with your fingers.
Most object properties are also variables. They can be changed by external
software or by the status of other Lemur Objects dwelling in the Project. Those
variables are called built-in Variables because you always find them with
the respective Object.
You can also create your own user-defined Variables that you
can fill with your own Expressions.
Variables can be local, living in a specific Object and accessed from the
outside through its address. You can also define them globally, enabling
multiple Objects to use their values directly.
Variables can be multi-dimensional, too. A Fader, for example,
has only one Variable defining its output with a single number. A MultiBall Object
has three Variables for the X, Y position and the lightness of the balls. The MultiBall
Variables are Vectors with as many components as there are balls defined for the
Object.
In combination with the built-in Functions and Operators and the
user-definable Expressions the Variables become a powerful tool for refining
Object behaviour, scaling and shaping responses, and setting up interactions
between Objects. Please refer to the section about Interface building and the
respective reference chapters for more information.
The global Time Variable deserves a special mention. It presents
the time in milliseconds since the Lemur was switched on. Combined with the
Lemur’s mathematical operators, it can produce a great variety of time-varying
number sequences.