/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp
ViewVC logotype

Log of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 3743 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 14 15:35:53 2020 UTC (3 days, 17 hours ago) by schoenebeck
File length: 121967 byte(s)
Diff to previous 3742
- Just added some TODO comments.

- Minor white space cleanup.


Revision 3742 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 14 15:15:13 2020 UTC (3 days, 18 hours ago) by schoenebeck
File length: 121400 byte(s)
Diff to previous 3715
* NKSP: Fixed incorrect EG times if standard measuring unit was
  passed to built-in functions "change_attack()", "change_decay()"
  or "change_release()".

* Bumped version (2.1.1.svn48).


Revision 3715 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 12 17:07:34 2020 UTC (5 weeks, 1 day ago) by schoenebeck
File length: 121205 byte(s)
Diff to previous 3691
* NKSP: Removed upper value constraint for 2nd argument of built-in
  functions "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
  "change_pitch_lfo_freq()","change_reso()", "change_cutoff()",
  "change_amp_lfo_depth()", "change_cutoff_lfo_depth()" and
  "change_pitch_lfo_depth()", to allow e.g. passing value 2000000
  to double the LFO frequency / resonance / cutoff frequency.

* Bumped version (2.1.1.svn38).


Revision 3691 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 3 12:35:20 2020 UTC (6 weeks, 3 days ago) by schoenebeck
File length: 121306 byte(s)
Diff to previous 3588
* NKSP: Implemented built-in script function "set_rpn()".

* NKSP: Implemented built-in script function "set_nrpn()".

* Bumped version (2.1.1.svn31).


Revision 3588 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 1 16:06:48 2019 UTC (5 months, 2 weeks ago) by schoenebeck
File length: 118441 byte(s)
Diff to previous 3587
NKSP: Built-in instrument functions fixes & hardening:

* Fixed the following built-in functions having misinterpreted values given
  with unit type (for their 2nd argument) as if they were relative values
  (that is as if they were passed without a unit type): "change_attack()",
  "change_decay()", "change_release()", "change_cutoff_attack()",
  "change_cutoff_decay()", "change_cutoff_release()".

* Fixed the following built-in functions having applied completely wrong
  'final' values: "change_sustain()", "change_cutoff_sustain()" (since the
  respective EGs being their modulation sink assume uint data type with
  value range 0..1000 instead of 0.0..1.0.

* Added individual parse-time checks of function arguments for the following
  built-in functions: "play_note()", "note_off()", "set_event_mark()",
  "delete_event_mark()", "by_marks()", "change_cutoff()", "change_attack()",
  "change_decay()", "change_release()", "change_cutoff_attack()",
  "change_cutoff_decay()", "change_cutoff_release()",
  "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
  "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()" and
  "change_pan_time()".

* Don't abort function call if unit type was used and at the same time
  'final' operator was omitted for the primary value argument of the
  following built-in functions: "change_cutoff()", "change_attack()",
  "change_decay()", "change_release()", "change_cutoff_attack()",
  "change_cutoff_decay()", "change_cutoff_release()",
  "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
  "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()",
  "change_pan_time()", instead imply 'final'ness at runtime and raise an
  appropriate parser warning at parse time.

* Bumped version (2.1.1.svn13).


Revision 3587 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 31 12:08:49 2019 UTC (5 months, 2 weeks ago) by schoenebeck
File length: 110614 byte(s)
Diff to previous 3581
NKSP: Real number support for core instrument built-in functions.

* NKSP: Built-in function "play_note()" accepts now real numbers and
  seconds as unit type as well for its 3rd and 4th function arguments.

* NKSP: The following built-in functions accept now real numbers as well for
  their 2nd function argument: "change_vol()", "change_tune()",
  "change_cutoff()", "change_attack()", "change_decay()",
  "change_release()", "change_sustain()", "change_cutoff_attack()",
  "change_cutoff_decay()", "change_cutoff_sustain()",
  "change_cutoff_release()", "change_amp_lfo_freq()",
  "change_cutoff_lfo_freq()", "change_pitch_lfo_freq()",
  "change_vol_time()", "change_tune_time()", "change_pan_time()",
  "fade_in()", "fade_out()", "change_play_pos()".

* NKSP: Fixed built-in function "change_play_pos()" not having accepted
  metric prefixes at all.

* Bumped version (2.1.1.svn12).


Revision 3581 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 30 11:40:25 2019 UTC (5 months, 2 weeks ago) by schoenebeck
File length: 107929 byte(s)
Diff to previous 3564
NKSP: Allow more wider support of standard measuring units & 'final'ness.

* Raised compiler requirement to be C++14 compliant (due to severe
  restrictions regarding C-style aggregate initializer lists in C++11
  which are now massively used throughout the code base).

* NKSP VM API: Allow units and 'final'ness to be returned as result from
  built-in functions (added methods VMFunction::returnUnitType() and
  VMFunction::returnsFinal() for that purpose which must be implemented by
  built-in function implementations).

* NKSP language: Allow metric unit prefixes of numeric scalar and array
  variables to be changed freely at runtime (unlike unit types like Hz etc.
  which are still sticky parse-time features of variables which cannot be
  changed at runtime for the intentional sake of determinism).

* NKSP language: 'final' values are prohibited for array variables for now
  (attempt causes a parsers error).

* NKSP language: expressions with unit types (e.g. Hz) are prohibited for
  conditions of runtime control structures like if(), while(), select()
  (attempt causes a parser error).

* NKSP VM API: Allow built-in functions to perform their own, individual
  parse time checks of arguments going to be passed to the function at
  runtime (added method VMFunction::checkArgs() for that purpose).

* NKSP language: raise parser warning if only one operand of binary
  operators (like logical 'or' comparison) contain a 'final' value (because
  it would always yield in a 'final' result in such cases).

* NKSP language: Allow comparison (=, #, <, >, <=, >=) of values with
  different metric unit prefixes, which will behave as expected (e.g.
  result of expression '1000us < 2ms' is true).

* NKSP language: Allow adding values with different metric unit prefixes
  (e.g. result of expression '100Hz + 5kHz' is '5100Hz').

* NKSP language: Allow subtracting values with different metric unit
  prefixes (e.g. result of expression '1ms - 20us' is '980us').

* NKSP language: Allow multiplying with any metric unit prefixes
  (e.g. result of expression '2k * 3ms' is '6s'), however multiplications
  with unit types on both sides (e.g. '2s * 2s') is still prohibited since
  we don't have any considerable practical use for a term like '4s^2'
  (hence any attempt multiplying two unit types still causes parser error).

* NKSP language: Allow dividing by any metric unit prefixes and allow
  division of same unit type on both sides (e.g. expression '8kHz / 1000Hz'
  yields in unit free result '8'). So this is now a way to cast units away
  e.g. for passing the result to other expressions, certain function calls
  or variables which are not accepting any units (or that specific unit).

* NKSP language: integer arrays and real number arrays can now be converted
  to strings (e.g. for dumping their content with message() calls for
  script debugging purposes).

* NKSP language: expressions and variables with units are now correctly
  casted to strings (e.g. with message() calls).

* NKSP language: comparing real numbers for equalness (e.g. '~foo = 3.1') or
  unequalness (e.g. '~foo # 3.1') is now less strict and takes the expected
  floating point tolerances into account.

* NKSP VM API: Added methods VMScalarNumberExpr::evalCastInt() and
  VMScalarNumberExpr::evalCastReal().

* NKSP VM API: Added base class 'VMNumberArrayExpr' for classes
  'VMIntArrayExpr' and 'VMRealArrayExpr'.

* NKSP VM API: replaced all unitPrefix() (parse time) methods by
  unitFactor() (runtime) methods.

* Built-in function "exit()" supports now returning units and 'final'ness
  exclusively for test cases.

* The following built-in functions support now units as well: "abs()",
  "random()", "inc()", "dec()", "in_range()", "min()", "max()",
  "real_to_int()", "int()", "int_to_real()" and "real()".

* Built-in functions "array_equal()", "search()" and "sort()" support now
  real number arrays (correctly) as well.

* Added individual parse time checks of arguments to be passed to built-in
  functions "random()", "inc()", "dec()", "in_range()", "min()", "max()",
  "array_equal()" and "search()" specific for their individual purposes.

* Test cases: Added massive amount of NKSP test cases for standard
  measuring units and 'final' operator usage cases.

* Test cases: Added NKSP test cases for (floating point tolerance aware)
  real number equalness / unequalness comparison.

* Bumped version (2.1.1.svn8).


Revision 3564 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 24 09:18:57 2019 UTC (5 months, 3 weeks ago) by schoenebeck
File length: 107910 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 (5 months, 3 weeks ago) by schoenebeck
File length: 106557 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 (6 months ago) by schoenebeck
File length: 90309 byte(s)
Diff to previous 3381
* 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 3381 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 28 15:54:49 2017 UTC (2 years, 2 months ago) by schoenebeck
File length: 90067 byte(s)
Diff to previous 3360
* NKSP: Fixed behavior of built-in functions change_sustain(),
  change_cutoff_attack(), change_cutoff_decay(), change_cutoff_sustain()
  and change_cutoff_release().
* Bumped version (2.1.0.svn1).


Revision 3360 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 27 21:19:18 2017 UTC (2 years, 3 months ago) by schoenebeck
File length: 90062 byte(s)
Diff to previous 3335
* NKSP: Added built-in script function "change_cutoff_attack()".
* NKSP: Added built-in script function "change_cutoff_decay()".
* NKSP: Added built-in script function "change_cutoff_sustain()".
* NKSP: Added built-in script function "change_cutoff_release()".
* NKSP: Added built-in script function "change_cutoff_lfo_depth()".
* NKSP: Added built-in script function "change_cutoff_lfo_freq()".
* Bumped version (2.0.0.svn77).


Revision 3335 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 30 14:33:15 2017 UTC (2 years, 6 months ago) by schoenebeck
File length: 87756 byte(s)
Diff to previous 3317
* NKSP: Added built-in script function "change_pan_time()".
* NKSP: Added built-in script function "change_pan_curve()".
* Bumped version (2.0.0.svn75).


Revision 3317 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 20 12:18:45 2017 UTC (2 years, 6 months ago) by schoenebeck
File length: 87152 byte(s)
Diff to previous 3316
- Minor adjustment to previous commit: don't limit the max.
  value of new script function "change_sustain()".


Revision 3316 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 20 12:05:53 2017 UTC (2 years, 6 months ago) by schoenebeck
File length: 87151 byte(s)
Diff to previous 3303
* NKSP: Implemented built-in script function "change_sustain()".
* Bumped version (2.0.0.svn72).


Revision 3303 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 10 17:45:30 2017 UTC (2 years, 7 months ago) by schoenebeck
File length: 86843 byte(s)
Diff to previous 3296
* NKSP: Removed max. value limitation of built-in functions
  "change_attack()", "change_decay()" and "change_release()" to
  i.e. allow passing 2000000 for doubling the respective time.
* Bumped version (2.0.0.svn68).


Revision 3296 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 28 09:45:56 2017 UTC (2 years, 7 months ago) by schoenebeck
File length: 86939 byte(s)
Diff to previous 3293
* Added built-in script function "callback_status()".
* Added built-in constant $CALLBACK_STATUS_TERMINATED.
* Added built-in constant $CALLBACK_STATUS_QUEUE.
* Added built-in constant $CALLBACK_STATUS_RUNNING.
* Bumped version (2.0.0.svn66).


Revision 3293 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 22:19:19 2017 UTC (2 years, 7 months ago) by schoenebeck
File length: 85953 byte(s)
Diff to previous 3277
* NKSP: Added built-in script function "fork()".
* NKSP: Added built-in array variable %NKSP_CALLBACK_CHILD_ID[].
* NKSP: Added built-in variable $NKSP_CALLBACK_PARENT_ID.
* NKSP: Fixed potential crash when accessing dynamic built-in
  array variables.
* Bumped version (2.0.0.svn65).


Revision 3277 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 5 18:40:18 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 83634 byte(s)
Diff to previous 3255
* NKSP: Implemented built-in script function "abort()" which allows
  to abort another script handler by passing its callback ID.
* Bumped version (2.0.0.svn61).


Revision 3255 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 30 15:43:39 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 82782 byte(s)
Diff to previous 3253
* NKSP: Implemented built-in script function "change_play_pos()".
* Bumped version (2.0.0.svn57).


Revision 3253 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 30 12:08:45 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 81596 byte(s)
Diff to previous 3251
* NKSP: built-in "play_note()" function now accepts -2 for its fourth
  argument (note duration) which means the life time of the note shall
  be sticked to the requested note number of argument 1.
* NKSP Fix: built-in "play_note()" function now returns 0 as result
  value if -1 was passed for its fourth argument (note duration) and
  the respective parent note is already gone.
* NKSP: Built-in array variable %KEY_DOWN[] is now a read-only
  variable.
* Built-in variable $EVENT_NOTE is now a read-only variable.
* Built-in variable $EVENT_VELOCITY is now a read-only variable.
* Bumped version (2.0.0.svn56).


Revision 3251 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 29 22:19:19 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 81245 byte(s)
Diff to previous 3246
* NKSP: built-in "play_note()" function now supports a sample playback
  start offset with argument 3, where special value -1 means to use the
  regular sample offset as defined by the instrument file.
* Bumped version (2.0.0.svn55).


Revision 3246 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 28 22:22:56 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 81027 byte(s)
Diff to previous 3218
* NKSP: Implemented built-in script function "change_vol_curve()".
* NKSP: Implemented built-in script function "change_tune_curve()".
* NKSP: Added built-in script constant "$NKSP_LINEAR".
* NKSP: Added built-in script constant "$NKSP_EASE_IN_EASE_OUT".
* Bumped version (2.0.0.svn54).


Revision 3218 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 25 16:32:17 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 76396 byte(s)
Diff to previous 3216
* NKSP: Adjusted behavior of "change_vol()" and "change_tune()" to a more
  intuitive behavior if used in combination with "change_vol_time()" or
  "change_tune_time()" respectively: now tuning/volume changes are only
  assigned (without delay) immediately to a new note if the respective
  timing function has not been called before, otherwise the volume/tuning
  changes are automatically faded (before, only the event's time stamp was
  relevant).
* Bumped version (2.0.0.svn50).


Revision 3216 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 25 15:16:28 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 75730 byte(s)
Diff to previous 3214
- Fixed compilation error with some compilers.


Revision 3214 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 25 14:46:47 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 75732 byte(s)
Diff to previous 3212
* NKSP: Implemented built-in script function "change_velo()".
* NKSP: Implemented built-in script function "change_note()".
* Bumped version (2.0.0.svn49).


Revision 3212 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 25 13:17:47 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 72717 byte(s)
Diff to previous 3205
* NKSP: Built-in "ignore_event()" function: argument is now optional,
  like with built-in function "ignore_controller()".


Revision 3205 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 24 20:05:38 2017 UTC (2 years, 8 months ago) by schoenebeck
File length: 72618 byte(s)
Diff to previous 3193
* Fixed invalid (note-on) event ID being assigned to new Note
  objects.
* Fixed a bunch of scheduler time related bugs.
* Bumped version (2.0.0.svn47).


Revision 3193 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 20 12:28:57 2017 UTC (2 years, 9 months ago) by schoenebeck
File length: 72743 byte(s)
Diff to previous 3188
* NKSP: Added built-in script function "get_event_par()" and implemented
  some of its possible parameter selections.
* NKSP: Added built-in script function "set_event_par()" and implemented
  some of its possible parameter selections.
* NKSP: Fixed (removed) artificial value limit for duration argument of
  built-in script functions "change_vol_time()" and "change_tune_time()".
* Fixed compile error with pre-C++11 compilers.
* Bumped version (2.0.0.svn46).


Revision 3188 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 19 14:23:12 2017 UTC (2 years, 9 months ago) by schoenebeck
File length: 67220 byte(s)
Diff to previous 3118
* NKSP: Implemented built-in script function "change_vol_time()".
* NKSP: Implemented built-in script function "change_tune_time()".
* NKSP: Implemented built-in script function "fade_in()".
* NKSP: Implemented built-in script function "fade_out()".
* NKSP: Fixed acceptance of wrong data type of parameters passed to
  built-in script functions "change_vol()", "change_tune()",
  "change_pan()", "change_cutoff()", "change_reso()",
  "change_attack()", "change_decay()", "change_release()",
  "change_amp_lfo_depth()", "change_amp_lfo_freq()",
  "change_pitch_lfo_depth()" and "change_pitch_lfo_freq()".
* Bumped version (2.0.0.svn45).


Revision 3118 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 21 13:33:03 2017 UTC (2 years, 9 months ago) by schoenebeck
File length: 53222 byte(s)
Diff to previous 2962
* NKSP: Fixed crash when using built-in script array variable "%ALL_EVENTS".
* NKSP: Added built-in function "change_amp_lfo_depth()".
* NKSP: Added built-in function "change_amp_lfo_freq()".
* NKSP: Added built-in function "change_pitch_lfo_depth()".
* NKSP: Added built-in function "change_pitch_lfo_freq()".
* Bumped version (2.0.0.svn44).


Revision 2962 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 17 17:54:04 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 47969 byte(s)
Diff to previous 2953
* NKSP: Fixed all change_*() built-in script functions to apply their
  synthesis parameter changes immediately in case the respective note
  was triggered at the same time, instead of scheduling the parameter
  change, especially because it would cause some parameter types's
  changes either to be ramped (i.e. change_vol()) or other types even
  to have not effect at all (i.e. change_attack()).
* Bumped version (2.0.0.svn20).


Revision 2953 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 16 11:24:39 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 43053 byte(s)
Diff to previous 2948
* NKSP: Implemented built-in script function "change_attack()".
* NKSP: Implemented built-in script function "change_decay()".
* NKSP: Implemented built-in script function "change_release()".
* Bumped version (2.0.0.svn19).


Revision 2948 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 15 15:29:04 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 33698 byte(s)
Diff to previous 2938
* NKSP: Implemented built-in script function "stop_wait()".
* NKSP: Implemented built-in script variable "$NI_CALLBACK_ID".
* NKSP: Implemented built-in script variable "$NI_CALLBACK_TYPE".
* NKSP: Implemented built-in script variable "$NKSP_IGNORE_WAIT".
* NKSP: Added support for read-only built-in variables
  (respectively handled by the script parser).
* NKSP: Added built-in script constant "$NI_CB_TYPE_INIT".
* NKSP: Added built-in script constant "$NI_CB_TYPE_NOTE".
* NKSP: Added built-in script constant "$NI_CB_TYPE_RELEASE".
* NKSP: Added built-in script constant "$NI_CB_TYPE_CONTROLLER".
* Bumped version (2.0.0.svn17).


Revision 2938 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 11 17:10:40 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 32016 byte(s)
Diff to previous 2935
* Fixed behavior of built-in instrument script functions play_note()
  and note_off(), which must be distinguished engine internally
  from "real" MIDI note on/off events in order to avoid
  misbehaviors like hanging notes.
* Bumped version (2.0.0.svn13).


Revision 2935 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 10 14:24:13 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 31786 byte(s)
Diff to previous 2931
* NKSP: Added & implemented built-in script function "change_cutoff()".
* NKSP: Added & implemented built-in script function "change_reso()".
* NKSP: Added & implemented built-in script function "event_status()".
* NKSP: Added built-in script constants "$EVENT_STATUS_INACTIVE" and
  "$EVENT_STATUS_NOTE_QUEUE" both for being used as flags for
  built-in "event_status()" script function.
* NKSP language: Added support for bitwise operators ".or.", ".and."
  and ".not.".
* NKSP language scanner: Fixed IDs matching to require at least one
  character (i.e. when matching function names or variable names).
* NKSP language scanner: disabled unusued rules.
* Bumped version (2.0.0.svn12).


Revision 2931 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 9 14:38:33 2016 UTC (3 years, 7 months ago) by schoenebeck
File length: 24373 byte(s)
Diff to previous 2879
* Implemented built-in instrument script function "change_vol()".
* Implemented built-in instrument script function "change_tune()".
* Implemented built-in instrument script function "change_pan()".
* Bumped version (2.0.0.svn11).


Revision 2879 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 19 14:07:53 2016 UTC (3 years, 10 months ago) by schoenebeck
File length: 12856 byte(s)
Diff to previous 2871
* All engines: Active voices are now internally grouped to "Note" objects,
  instead of being directly assigned to a keyboard key. This allows more
  fine graded processing of voices, which is i.e. required for certain
  instrument script features.
* Built-in script function "play_note()": Added support for passing
  special value -1 for "duration-us" argument, which will cause the
  triggered note to be released once the original note was released.
* Bumped version (2.0.0.svn3).


Revision 2871 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 10 18:22:23 2016 UTC (3 years, 10 months ago) by schoenebeck
File length: 11189 byte(s)
Diff to previous 2630
* All engines: Implemented scheduler for delayed MIDI events and for
  suspended real-time instrument scripts.
* Real-Time instrument scripts: Implemented support for built-in "wait()"
  function's "duration-us" argument, thus scripts using this function are
  now correctly resumed after the requested amount of microseconds.
* Real-Time instrument scripts: Implemented support for built-in
  "play_note()" function's "duration-us" argument, thus notes triggered
  with this argument are now correctly released after the requested amount
  of microseconds.
* Real-Time instrument scripts: Fixed crash which happened when trying to
  reference an undeclared script variable.
* Real-Time instrument scripts: Script events were not cleared when
  engine channel was reset, potentially causing undefined behavior.
* All engines: Attempt to partly fix resetting engine channels vs.
  resetting engine, an overall cleanup of the Reset*(),
  ConnectAudioDevice(), DisconnectAudioDevice() API methods would still be
  desirable though, because the current situation is still inconsistent
  and error prone.
* Bumped version (2.0.0.svn2).


Revision 2630 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 13 15:01:06 2014 UTC (5 years, 8 months ago) by schoenebeck
File length: 11028 byte(s)
Diff to previous 2629
* Implemented built-in instrument script function "set_event_mark()".
* Implemented built-in instrument script function "delete_event_mark()".
* Implemented built-in instrument script function "by_marks()".
* Added built-in instrument script int const variables $MARK_1 to $MARK_28.
* Built-in instrument script functions "ignore_event()", "note_off()" and
  "gig_set_dim_zone()" now also accept an array of event IDs as argument
  (i.e. return value of new script function "by_marks()").
* Bumped version (1.0.0.svn53).


Revision 2629 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 12 18:25:11 2014 UTC (5 years, 8 months ago) by schoenebeck
File length: 6486 byte(s)
Diff to previous 2606
* Implemented built-in instrument script function "note_off()".
* Bumped version (1.0.0.svn52).


Revision 2606 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 8 05:42:56 2014 UTC (5 years, 8 months ago) by persson
File length: 5247 byte(s)
Diff to previous 2600
* removed usage of c++11 initializer that caused compilation errors on
  older compilers


Revision 2600 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 7 00:16:03 2014 UTC (5 years, 8 months ago) by schoenebeck
File length: 5197 byte(s)
Diff to previous 2598
* Implemented built-in instrument script function "set_controller()".
* Fixed built-in script functions "ignore_event()" and
  "ignore_controller()".
* Added extended instrument script VM for the Gigasampler/GigaStudio format
  sampler engine, which extends the general instrument script VM with Giga
  format specific variables and functions.
* Giga format instrument scripts: added built-in script int constant
  variables $GIG_DIM_CHANNEL, $GIG_DIM_LAYER, $GIG_DIM_VELOCITY,
  $GIG_DIM_AFTERTOUCH, $GIG_DIM_RELEASE, $GIG_DIM_KEYBOARD,
  $GIG_DIM_ROUNDROBIN, $GIG_DIM_RANDOM, $GIG_DIM_SMARTMIDI,
  $GIG_DIM_ROUNDROBINKEY, $GIG_DIM_MODWHEEL, $GIG_DIM_BREATH,
  $GIG_DIM_FOOT, $GIG_DIM_PORTAMENTOTIME, $GIG_DIM_EFFECT1,
  $GIG_DIM_EFFECT2, $GIG_DIM_GENPURPOSE1, $GIG_DIM_GENPURPOSE2,
  $GIG_DIM_GENPURPOSE3, $GIG_DIM_GENPURPOSE4, $GIG_DIM_SUSTAIN,
  $GIG_DIM_PORTAMENTO, $GIG_DIM_SOSTENUTO, $GIG_DIM_SOFT,
  $GIG_DIM_GENPURPOSE5, $GIG_DIM_GENPURPOSE6, $GIG_DIM_GENPURPOSE7,
  $GIG_DIM_GENPURPOSE8, $GIG_DIM_EFFECT1DEPTH, $GIG_DIM_EFFECT2DEPTH,
  $GIG_DIM_EFFECT3DEPTH, $GIG_DIM_EFFECT4DEPTH, $GIG_DIM_EFFECT5DEPTH.
* Giga format instrument scripts: Implemented built-in script function
  "gig_set_dim_zone(event_id, dimension, zone)", which allows to override
  dimension zone(s) for new voices.
* Bumped version (1.0.0.svn45).


Revision 2598 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 6 12:38:54 2014 UTC (5 years, 8 months ago) by schoenebeck
File length: 3801 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]
Added Thu Jun 5 19:39:12 2014 UTC (5 years, 8 months ago) by schoenebeck
File length: 2427 byte(s)
* 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).


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