Lemur Monitors Lemur Mouse User Manual


 
Parser Reference
92
0.3 if Fader.x>=0.3
Fader.x otherwise
rand() : Returns a random value between 0 and 1at each frame (one frame is
16ms, the parser evaluates every Expression at each frame and send out
MIDI or OSC if a mapped value has changed)
range(a, min, max) : Stretch a Variable that normally goes from 0 to 1, to range [min, max]
range(Fader.x, 10, 100) =
10 if Fader.x == 0
100 if Fader.x == 100
between 10 and 100 otherwise
5.1.8.4.
Trigonometric
acos, asin, atan, cos, sin, tan, log, log10, exp are the same as their mathematical
counterparts.
angle(x,y) : Returns the angle in radians formed by a vector of coordinates (x,y) to the positive
x axis
Example:
Create a RingArea
Create a variable inside : a = angle(x-0.5, y-0.5)
this returns the angle position of the ball from the centre of the RingArea
norm(x, y) : Length of a vector of coordinates (x,y)
Example :
create a Multiball with 2 balls
variable inside : distance = normal(x[1]-x[0], y[1]-y[0])
this returns the distance between ball 0 and ball 1
5.1.8.5.
Vector
fill(a, value, size) : Returns a vector with "size" items
the vector is filled from the left with n items = "value"
the number of items set to "value" depends on the a argument : a
threshold between 0 and 1
when a = 0, there's no filling at all, and the vector is full of zeros