Formula editor's allowed syntax: |
||
Operators |
||
Abbreviature |
Comment |
Example |
+ | addition | a+b |
* | multiplication | a*b |
- | subtraction | a-b |
/ | division | a/b |
^ | power | a^b |
Functions |
||
Abbreviature |
Comment |
Example |
Sin | sine | Sin(a) |
Cos | cosine | Cos(a) |
Tg | tangent | Tg(a) |
Ctg | cotangent | Ctg(a) |
Sec | secant | Sec(a) |
CoSec | cosecant | CoSec(a) |
ArcSin | antisine | ArcSin(a) |
ArcCos | anticosine | ArcCos(a) |
ArcTg | antitangent | ArcTg(a) |
Exp | exponent | Exp(a) |
Sqrt | square root | Sqrt(a) |
Ln | logarythm base e | Ln(a) |
Log10 | logarythm base 10 | Log10(a) |
Log2 | logarythm base 2 | Log2(a) |
Neg | negative | Neg(a) |
Abs | absolute | Abs(a) |
Pi | pi | Pi() |
Sum | sum of arguments | Sum(a,b) |
Min | minimum | Min(a,b) |
Max | maximum | Max(a,b) |
Round | round to nearest integer | Round(a) |
Int | integral part | Int(a) |
Frac | fractional part | Frac(a) |
IfE | returns 1 if a=b | IfE(a,b) |
IfL | returns 1 if a<b | IfL(a,b) |
IfG | returns 1 if a>b | IfG(a,b) |
IfLE | returns 1 if a<=b | IfLE(a,b) |
IfGE | returns 1 if a>=b | IfGE(a,b) |
Case | returns b if a=1, else returns c | Case(a,b,c) |
Rand | random value (0..1) | Rand() |
SeededRand | controlled random value (0..1) | SeededRand(Seed) |
Special (related to FruityLoops) |
||
Abbreviature |
Comment |
Example |
a | a knob's value | a |
b | b knob's value | b |
c | c knob's value | c |
SongTime | song position, in quarters | SongTime() |
Time | system time, in ms | Time() |
Tension | same as tension knobs | Tension(Value,Speed) |
Gadget (not much useful, just fun) |
||
Abbreviature |
Comment |
Example |
Date | system date | Date() |
MouseX | mouse cursor X position | MouseX() |
MouseY | mouse cursor Y position | MouseY() |