- $x ->$x1[0] $x# -> $x#[0]
- $y = $y1[-1] and $y# = $y#[-1]
Tables and variables can be accessed the same way one dimensional arrays are accessed in C; for example, "valx + 10" will be evaluated to the value of variable 'valx' + 10 (variables have to be defined using the 'value' object) and "tabname[5]" will be evaluated to be the 5th element of table "tabname". The name of the table can be a variable as well; for example "$s2[5]" will be evaluated to be the 5 element of the array whose symbol has been passed in inlet 2.
$i1 - $i9
the first nine inlets taken as integers
$f1 - $f9
the first nine inlets taken as floats
$s1 - $s9
the first nine inlets taken as symbols (currently symbols are used for table lookups)
The result of expr~ is a vector. The inlet has to be a vector and type conversions are done either automatically or by the use of functions .
$i1 - $i9
the first nine inlets taken as integers
$f1 - $f9
the first nine inlets taken as floats
$s1 - $s9
the first nine inlets taken as symbols (currently symbols are used for table lookups) $v1 - $v9
the first nine inlets taken as signals (vectors)
$i1 - $i9
the first nine inlets taken as integers
$f1 - $f9
the first nine inlets taken as floats
$s1 - $s9
the first nine inlets taken as symbols (currently symbols are used for table lookups
$x1[n] -$x9[n]
accessing samples of the first nine signal inlets (vectors) , where 0 <= n < -{vector size } $y[n]
accessing the output samples where 0 < n < -{vector size}
~
One's complement
*
Multiply
/
Divide
%
Modulo
+
Add
-
Substract
<<
Shift Left
>>
Shift Right
<
Less than (boolean)
<=
Less than or equal (boolean)
>
Greater than (boolean)
>=
Greater than or equal (boolean)
==
Equal (boolean)
!=
Not equal (boolean)
&
Bitwise And
^
Exclusive Or
|
Bitwise Or
&&
Logical And (boolean)
||
Logical Or (boolean)
Functions
# of Args Description
if()
3
conditional - if (condition, IfT rue-expr, IfFalse-expr) - in expr~ if 'condition' is a signal, the result will be determined on sample by sample basis (added in version 0.4)
int ()
1
convert to integer
rint ()
1
round a float to a nearby integer
float ()
1
convert to float
min ()
2
minumum
max ()
2
maximum abs()
1
absolute value (added in version 0.3) if()
3
conditional - if (condition, IfT rue-expr, IfFalse-expr) - in expr~ if 'condition' is a signal, the result will be determined on sample by sample basis (added in version 0.4)
isinf()
1
is the value infinite (added in version 0.4)
finite()
1
is the value finite (added in version 0.4)
isnan
1
is the value non a number (added in version 0.4)
copysign()
1
copy sign of a number(added in version 0.4)
imodf
1 get signed intergar value from floating point number(added in version 0.4)
modf
1
get signed fractional value from floating-point number(added in version 0.4)
drem
2
floating-point remainder function (added in versio n 0.4)
power functions
pow ()
2
raise to the power of {e.g., pow(x,y) is x to the power of y}
sqrt ()
1
square root
exp()
1
e raised to the power of the argument {e.g., exp(5.2) is e raised to the power of 5.2}
ln() and log()
1
natural log
log10()
1
log base 10
fact()
1
factorial
erf()
1
error function (added in version 0.4)
erfc()
1
complementary error function (added in version 0.4)
cbrt()
1
cube root (added in version 0.4)
expm1()
1
exponential minus 1 (added in version 0.4)
log1p()
1
logarithm of 1 plus (added in version 0.4)
ldexp()
1
multiply floating-point number by integral power of 2 (added in version 0.4)
Trigonometric
sin()
1
sine
cos()
1
cosine
tan()
1
tangent
asin()
1
arc sine
acos()
1
arc cosine
atan()
1
arc tangent
atan2()
2
arc tangent of 2 variables
sinh()
1
hyperbolic sine
cosh()
1
hyperbolic cosine
tanh()
1
hyperbolic tangent
asinh()
1
inverse hyperbolic sine
acosh()
1
inverse hyperbolic cosine
atan()
1
inverse hyperbolic tangent
floor()
1
largest integral value not greater than argument (added in version 0.4)
ceil()
1
smallest integral value not less than argument (added in version 0.4)
fmod()
1
floating-point remainder function (added in version 0.4)
Table Functions
size()
1
size of a table
sum()
1
sum of all elements of a table
Sum()
3
sum of elemnets of a specified boundary of a table