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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2581 - (show annotations) (download)
Fri May 30 12:48:05 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/plain
File size: 576 byte(s)
* (WIP) Implemented parser and VM for upcoming new real-time instrument
  script support. It needs yet to be integrated into the sampler's
  sampler engines. You can toy around for now with the command line tool
  "ls_instr_script" and i.e. examples showing the core language features
  under src/scriptvm/examples/.
* Bumped version (1.0.0.svn41).

1 on init
2 declare $foo := 7
3
4 { you can also use parentheses, i.e.: select ($foo) }
5 select $foo
6 case 0
7 message("unary select case does not work!")
8 case 6
9 message("unary select case does not work!")
10 case 7
11 message("unary select case works.")
12 case 8
13 message("unary select case does not work!")
14 end select
15
16 select $foo
17 case 0 to 4
18 message("range select case does not work!")
19 case 10 to 12
20 message("range select case does not work!")
21 case 5 to 9
22 message("range select case works.")
23 end select
24 end on

  ViewVC Help
Powered by ViewVC