/[svn]/linuxsampler/trunk/src/scriptvm/examples/expressions.txt
ViewVC logotype

Contents of /linuxsampler/trunk/src/scriptvm/examples/expressions.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2619 - (show annotations) (download)
Wed Jun 11 13:24:32 2014 UTC (9 years, 9 months ago) by schoenebeck
File MIME type: text/plain
File size: 1008 byte(s)
* Implemented built-in instrument script function "abs()".
* Implemented built-in instrument script function "random()".
* Implemented built-in instrument script function "num_elements()".
* Disabled debug mode of RefPtr template class.
* Bumped version (1.0.0.svn51).

1 on init
2 declare @s := "foo" & " bar"
3 message(@s)
4
5 message("4 + 3 is " & 4 + 3)
6 message("10 mod 8 -> " & 10 mod 8)
7
8 message("Relation 3 < 4 -> " & 3 < 4)
9 message("Relation 3 > 4 -> " & 3 > 4)
10 message("Relation 3 <= 4 -> " & 3 <= 4)
11 message("Relation 3 >= 4 -> " & 3 >= 4)
12 message("Relation 3 # 4 -> " & 3 # 4)
13 message("Relation 3 = 4 -> " & 3 = 4)
14
15 message("Bit operation 1 and 2 = " & 1 and 2)
16 message("Bit operation 1 and 3 = " & 1 and 3)
17 message("Bit operation 1 and 0 = " & 1 and 0)
18 message("Bit operation 1 or 2 = " & 1 or 2)
19 message("Bit operation 1 or 1 = " & 1 or 1)
20 message("Bit operation 1 or 0 = " & 1 or 0)
21 message("Bit operation 0 or 0 = " & 0 or 0)
22
23 message("Bit operation not 1 = " & not 1)
24 message("Bit operation not 2 = " & not 2)
25 message("Bit operation not 0 = " & not 0)
26
27 message("abs(-3) = " & abs(-3))
28
29 message("random(-5,5) = " & random(-5,5))
30 message("random(-5,5) = " & random(-5,5))
31 message("random(-5,5) = " & random(-5,5))
32
33 end on

  ViewVC Help
Powered by ViewVC