/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp
ViewVC logotype

Log of /linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 3573 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 27 21:36:53 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 17663 byte(s)
Diff to previous 3564
NKSP: Introducing floating point support.

* NKSP language: Added support for NKSP real number literals and
  arithmetic operations on them (e.g. "(3.9 + 2.9) / 12.3 - 42.0").

* NKSP language: Added support for NKSP real number (floating point)
  script variables (declare ~foo := 3.4).

* NKSP language: Added support for NKSP real number (floating point)
  array script variables (declare ?foo[3] := ( 1.1, 2.7, 49.0 )).

* NKSP built-in script function "message()" accepts now real number
  argument as well.

* Added built-in NKSP script function "real_to_int()" and its short
  hand form "int()" for casting from real number to integer in NKSP
  scripts.

* Added built-in NKSP script function "int_to_real()" and its short
  hand form "real()" for casting from integer to real number in NKSP
  scripts.

* Bumped version (2.1.1.svn6).


Revision 3564 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 24 09:18:57 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 16446 byte(s)
Diff to previous 3561
NKSP: Bug fixes regarding new measurement units feature:

* Fix: Engine internal Fade of script synthesis parameters volume, pitch
  and pan were not rendered at all.

* Fix: Backward compatibility of built-in function arguments without a
  metric unit prefix was broken (resulted in incorrect value
  transformation).

* Fix: built-in script function change_play_pos() resolved wrong arguments.

* Bumped version (2.1.1.svn5).


Revision 3561 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 23 11:44:00 2019 UTC (4 years, 7 months ago) by schoenebeck
File length: 16343 byte(s)
Diff to previous 3557
NKSP: Added standard units support for numbers and final "!" operator:

* NKSP strictness: Variable names, function names and preprocessor condition
  names must start with a regular character (a-z or A-Z); starting them with
  a digit or underscore is no longer allowed.

* NKSP parser fix: equal comparison operator "=" and not equal comparison
  operator "#" must only accept integer operands.

* NKSP language: Implemented support for standard units like Hertz, seconds,
  Bel including support for metric unit prefixes; so one can now e.g.
  conveniently use numbers in scripts like "5us" meaning "5 microseconds",
  or e.g. "12kHz" meaning "12 kilo Hertz", or e.g. "-14mdB" meaning
  "minus 14 Millidecibel", or e.g. "28c" meaning "28 cents" (for tuning).

* NKSP language: Introduced "final" operator "!" which is specifically
  intended for synthesis parameter values to denote that the synthesis
  parameter value is intended to be the "final" value for that synthesis
  parameter that should explicitly be used by the engine and thus causing
  the sampler engine to ignore all other modulation sources for the same
  synthesis parameter (like e.g. LFO, EG); by simply prefixing a value,
  variable or formula with this new "!" operator the expression is marked as
  being "final".

* Bumped version (2.1.1.svn4).


Revision 3557 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 18 00:06:04 2019 UTC (4 years, 8 months ago) by schoenebeck
File length: 16040 byte(s)
Diff to previous 3551
* NKSP: Introducing 64 bit support for NKSP integer scripts
  variables (declare $foo).
* Require C++11 compiler support.
* Autoconf: Added m4/ax_cxx_compile_stdcxx.m4 macro which is used
  for checking in configure for C++11 support (as mandatory
  requirement) and automatically adds compiler argument if required
  (e.g. -std=C++11).
* Bumped version (2.1.1.svn3).


Revision 3551 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 1 10:22:56 2019 UTC (4 years, 8 months ago) by schoenebeck
File length: 15921 byte(s)
Diff to previous 3345
* Added test cases for NKSP core language aspects and core built-in
  functions.
* NKSP: Added method ScriptVM::setExitResultEnabled() which allows
  to explicitly enable the built-in exit() function to optionally
  accept one function argument; the value of the passed exit()
  function argument will then become available by calling
  VMExecContext::exitResult() after script execution.
* Bumped version (2.1.1.svn2).


Revision 3345 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 10 13:18:06 2017 UTC (6 years, 8 months ago) by schoenebeck
File length: 14958 byte(s)
Diff to previous 3285
* Fixed compilation error with clang libc++.


Revision 3285 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 22 10:45:38 2017 UTC (6 years, 9 months ago) by schoenebeck
File length: 14746 byte(s)
Diff to previous 3222
* NKSP: Print a time stamp along to each call of built-in function
  "message()".
* ScriptVM API: Added VMParserContext::preprocessorComments() which
  allows to retrieve all code blocks filtered out by the
  preprocessor.
* Bumped version (2.0.0.svn63).


Revision 3222 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 26 18:55:45 2017 UTC (6 years, 10 months ago) by schoenebeck
File length: 14616 byte(s)
Diff to previous 3221
- Fixed compilation error with some compilers.


Revision 3221 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 26 18:30:42 2017 UTC (6 years, 10 months ago) by schoenebeck
File length: 14622 byte(s)
Diff to previous 3076
* NKSP Fix: Never suspend "init" event handlers.
* NKSP: Implemented built-in script function "array_equal()".
* NKSP: Implemented built-in script function "search()".
* NKSP: Implemented built-in script function "sort()".
* Bumped version (2.0.0.svn52).


Revision 3076 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 5 18:00:52 2017 UTC (7 years, 3 months ago) by schoenebeck
File length: 7228 byte(s)
Diff to previous 2972
* NKSP: Implemented built-in script function "in_range()".
* Bumped version (2.0.0.svn36).


Revision 2972 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 22 14:37:34 2016 UTC (7 years, 8 months ago) by schoenebeck
File length: 6760 byte(s)
Diff to previous 2970
* NKSP Fix: "init" event handler was not always executed when a script
  was loaded.
* NKSP built-in wait() script function: abort script execution if
  a negative or zero wait time was passed as argument (since this is
  a common indication of a bug either of the script or even of the
  engine, which could lead to RT instability or even worse).
* Bumped version (2.0.0.svn24).


Revision 2970 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 21 16:22:55 2016 UTC (7 years, 9 months ago) by schoenebeck
File length: 6426 byte(s)
Diff to previous 2965
* NKSP: Implemented built-in script function "min()".
* NKSP: Implemented built-in script function "max()".
* Bumped version (2.0.0.svn23).


Revision 2965 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 18 09:42:28 2016 UTC (7 years, 9 months ago) by schoenebeck
File length: 5818 byte(s)
Diff to previous 2945
* NKSP: Implemented built-in script function "sh_left()".
* NKSP: Implemented built-in script function "sh_right()".
* Bumped version (2.0.0.svn22).


Revision 2945 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 14 00:22:26 2016 UTC (7 years, 9 months ago) by schoenebeck
File length: 5206 byte(s)
Diff to previous 2727
* NKSP: Implemented built-in script function "inc()".
* NKSP: Implemented built-in script function "dec()".
* NKSP language fix: division expressions were evaluated too often.
* NKSP language fix: string concatenation operator was right
  associative instead of left (to right).
* Bumped version (2.0.0.svn15).


Revision 2727 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 31 17:46:11 2015 UTC (9 years ago) by schoenebeck
File length: 4292 byte(s)
Diff to previous 2620
- Just added API doc comments to Script VM code.


Revision 2620 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 11 13:31:27 2014 UTC (9 years, 10 months ago) by schoenebeck
File length: 3268 byte(s)
Diff to previous 2619
- Fixed compile error on Windows.


Revision 2619 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 11 13:24:32 2014 UTC (9 years, 10 months ago) by schoenebeck
File length: 3270 byte(s)
Diff to previous 2598
* 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).


Revision 2598 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 6 12:38:54 2014 UTC (9 years, 10 months ago) by schoenebeck
File length: 2341 byte(s)
Diff to previous 2596
* ScriptVM (WIP): Built-in script function "play_note()" now returns the
  event ID of the triggered note.
* ScriptVM (WIP): Implemented built-in script int variable $EVENT_ID.
* ScriptVM (WIP): Implemented built-in script function "ignore_event()".
* ScriptVM (WIP): Implemented built-in script function
  "ignore_controller()" (accepts one and no argument).
* Bumped version (1.0.0.svn44).


Revision 2596 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 5 19:39:12 2014 UTC (9 years, 10 months ago) by schoenebeck
File length: 2254 byte(s)
Diff to previous 2581
* ScriptVM (WIP): Implemented execution of script event
  handlers "note" and "release".
* ScriptVM (WIP): Implemented built-in script function
  "play_note()" (only two of the max. four function
  arguments are currently implemented yet though).
* ScriptVM (WIP): Fixed incorrect handling of
  suspended scripts.
* Bumped version (1.0.0.svn43).


Revision 2581 - (view) (download) (annotate) - [select for diffs]
Added Fri May 30 12:48:05 2014 UTC (9 years, 10 months ago) by schoenebeck
File length: 2032 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).


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC