Log of /linuxsampler/trunk/src/scriptvm
Directory Listing
Revision
3846 -
Directory Listing
Modified
Wed Jan 6 14:01:11 2021 UTC
(3 years, 3 months ago)
by
schoenebeck
* ScriptVM: Fixed crash when handling array results of built-in
functions (e.g. "num_elements(by_marks($MARK_1)").
* Bumped version (2.1.1.svn69).
Revision
3845 -
Directory Listing
Modified
Tue Jan 5 20:42:32 2021 UTC
(3 years, 3 months ago)
by
schoenebeck
* ScriptVM: Fixed incorrect polyphonic data transfer from wrong "note"
handler to "release" handler; which also fixes no "release" handler
being executed sometimes, and due to the latter it also fixes potential
crashes as some polyphonic script events were never released and the
engine hence was running out of free script events.
* Bumped version (2.1.1.svn68).
Revision
3836 -
Directory Listing
Modified
Sat Nov 28 14:47:14 2020 UTC
(3 years, 4 months ago)
by
schoenebeck
* NKSP parser: fixed memory leak; string tokens were allocated as C
strings and never freed.
* Bumped version (2.1.1.svn66).
Revision
3816 -
Directory Listing
Modified
Fri Aug 28 17:28:48 2020 UTC
(3 years, 7 months ago)
by
schoenebeck
* NKSP parser: Fixed crash if unary '-' operator was used on a non-number
data type.
* NKSP parser: Raise parser error if either unary '-' or '+' operator was
used with a non-number data type.
* Tests: Added test cases for the fixed issues described above.
* Bumped version (2.1.1.svn63).
Revision
3804 -
Directory Listing
Modified
Thu Aug 6 12:15:02 2020 UTC
(3 years, 8 months ago)
by
schoenebeck
NKSP: Fixed built-in exit() function to behave as return statement.
* VM API: Introduced new signal STMT_RETURN_SIGNALLED.
* NKSP exit() function: signal STMT_RETURN_SIGNALLED instead of
STMT_ABORT_SIGNALLED.
* NKSP AST: Introduced common base class 'Subroutine' for 'EventHandler'
and for new 'UserFunction' class.
* NKSP parser: Use 'UserFunction' class instead of 'Statements' class
for user declared NKSP functions.
* ScriptVM: Handle new STMT_RETURN_SIGNALLED signal by unwinding the
stack to previous, calling subroutine.
* NKSP tests: Added test cases for exit() acting as return statement.
* Bumped version (2.1.1.svn62).
Revision
3803 -
Directory Listing
Modified
Thu Aug 6 11:45:24 2020 UTC
(3 years, 8 months ago)
by
schoenebeck
NKSP tests: If a test failed, show the test case's NKSP source
code and expectations of that test causing the failure.
Revision
3792 -
Directory Listing
Modified
Mon Jun 15 15:26:10 2020 UTC
(3 years, 10 months ago)
by
schoenebeck
* NKSP language: emit warning if an array variable was declared with bigger
array size than amount of initial values been assigned, and initialize the
missing array elements with zero in this case.
* Bumped version (2.1.1.svn60).
Revision
3790 -
Directory Listing
Modified
Sun Jun 14 14:29:41 2020 UTC
(3 years, 10 months ago)
by
schoenebeck
NKSP: Relaxed array variable declaration.
* NKSP: Just throw a warning, not an error if an array variable of
size zero was declared.
* NKSP: Allow omitting explicit array size on array variable declaration
if combined with immediate value assignment
(e.g. declare %foo[] := ( 1, 2, 3 ) ).
* Bumped version (2.1.1.svn59).
Revision
3786 -
Directory Listing
Modified
Sun Jun 7 15:39:31 2020 UTC
(3 years, 10 months ago)
by
schoenebeck
* NKSP: Fixed crash when undefined variable was referenced.
* Bumped version (2.1.1.svn57).
Revision
3747 -
Directory Listing
Modified
Sun Feb 16 11:31:46 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
* NKSP: Fixed re-entrant issue with function calls which caused wrong
result values if the same function was called multiple times in a term
(specifically if metric prefixes were used).
* Tests: Added NKSP core language test cases to guard this fixed issue.
* Bumped version (2.1.1.svn50).
Revision
3746 -
Directory Listing
Modified
Sat Feb 15 20:00:55 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
NKSP Parser: Fixed compiler warnings about memcpy() on dynamic objects.
Revision
3745 -
Directory Listing
Modified
Sat Feb 15 12:21:34 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
Tests: More NKSP test cases about functions returning some unit type.
Revision
3744 -
Directory Listing
Modified
Sat Feb 15 11:50:02 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
* NKSP: Fixed intermediate function result values never having reflected
any standard measuring unit type.
* Tests: Guard this fixed NKSP issue by test cases.
* Bumped version (2.1.1.svn49).
Revision
3733 -
Directory Listing
Modified
Sat Feb 1 18:11:20 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
NKSP: Added support for 'patch' variables.
* NKSP language: Added support for 'patch' variable qualifier
(as new dedicated keyword 'patch').
* NKSP parser: capture locations of 'patch' variable declarations
in script's source code.
* ScriptVM: Allow patching 'patch' script variables by replacing
their default assignment expression with a supplied replacement
variable initialization expression by optional 2nd argument when
calling loadScript().
* ScriptVM: Allow retrieval of default initialization expressions
of all 'patch' variables by optional 3rd argument when calling
loadScript() (i.e. for instrument editors).
* gig engine: Implemented support for loading real-time instrument
scripts with 'patch' variables bundled with gig instruments.
* Bumped version (2.1.1.svn46).
Revision
3729 -
Directory Listing
Modified
Fri Jan 31 10:57:53 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
NKSP parser: track code locations also by raw byte position and length.
* NKSP VM API: Added member variables 'firstByte' and 'lengthBytes' to
struct 'CodeBlock'.
* NKSP Editor API: Added methods firstByte() and lengthBytes() to
class 'VMSourceToken'.
* NKSP VM language parser: track all positions also by raw byte offset
and length (along to the already existing tracking by line/column).
* NKSP editor syntax highlighting scanner: track all positions also by
raw byte offset and length (along to the already existing tracking by
line/column).
* Bumped version (2.1.1.svn45).
Revision
3728 -
Directory Listing
Modified
Wed Jan 29 13:58:33 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
NKSP: Reduced code for parsing NKSP variable declarations:
* Use 2 generalized grammar rules with optional components (i.e. optional
value assignment and optional variable qualifiers) instead of previous
linear combinations of grammar rules, which also fixes some edge case.
* Bumped version (2.1.1.svn44).
Revision
3727 -
Directory Listing
Modified
Mon Jan 27 16:34:44 2020 UTC
(4 years, 2 months ago)
by
schoenebeck
Tests: Added thorough NKSP test cases for variable declarations.
Revision
3714 -
Directory Listing
Modified
Sat Jan 11 20:19:11 2020 UTC
(4 years, 3 months ago)
by
schoenebeck
NKSP: Fixed crash with built-in functions returning an array.
* Calling built-in functions returning an array type was broken and
caused a crash when built-in function's NULL (supposed to be array)
result value was used by the script VM.
* Bumped version (2.1.1.svn37).
Revision
3707 -
Directory Listing
Modified
Wed Jan 8 21:21:58 2020 UTC
(4 years, 3 months ago)
by
schoenebeck
Fixed compiler warnings about format specifiers:
Use portable format specifiers like PRId64 from inttypes.h
instead of assuming a particular word size.
Revision
3695 -
Directory Listing
Modified
Fri Jan 3 15:44:29 2020 UTC
(4 years, 3 months ago)
by
schoenebeck
* NKSP: Fixed certain built-in variables having returned
some (seemingly random) metric unit factor (instead of none).
* Bumped version (2.1.1.svn32).
Revision
3693 -
Directory Listing
Modified
Fri Jan 3 14:53:32 2020 UTC
(4 years, 3 months ago)
by
schoenebeck
Added NKSP test cases for core built-in variables.
Revision
3690 -
Directory Listing
Modified
Fri Jan 3 10:18:21 2020 UTC
(4 years, 3 months ago)
by
schoenebeck
NKSP: Added support for RPN and NRPN event handlers:
* NKSP language: Added support for RPN event handler
("on rpn ... end on" in instrument scripts).
* NKSP language: Added support for NRPN event handler
("on nrpn ... end on" in instrument scripts).
* Added built-in read-only variables "$RPN_ADDRESS" and "$RPN_VALUE" which
may be read from the new RPN/NRPN script handlers to get the (N)RPN
parameter that had been changed and its new value.
* Added built-in const variables "$NI_CB_TYPE_RPN" and "$NI_CB_TYPE_NRPN"
which are identifying the new (N)RPN handlers as such at script runtime.
* Bumped version (2.1.1.svn30).
Revision
3678 -
Directory Listing
Modified
Fri Dec 27 22:46:08 2019 UTC
(4 years, 3 months ago)
by
schoenebeck
* NKSP: Added built-in script functions "msb()" and "lsb()".
* Bumped version (2.1.1.svn26).
Revision
3600 -
Directory Listing
Modified
Sun Sep 15 22:25:17 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
Just renamed NKSPTest.cpp -> NKSPCoreLangTest.cpp.
Revision
3596 -
Directory Listing
Modified
Wed Sep 4 15:10:06 2019 UTC
(4 years, 7 months ago)
by
persson
* Fixed compile errors with Clang 4.0
Revision
3595 -
Directory Listing
Modified
Tue Sep 3 11:06:33 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
* Fixed compiler errors with GCC 8.x.
* Bumped version (2.1.1.svn16).
Revision
3592 -
Directory Listing
Modified
Mon Sep 2 09:40:44 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
* NKSP language: Allow unary '+' operator.
* Test cases: Added NKSP tests for unary '+' operator.
* Bumped version (2.1.1.svn15).
Revision
3591 -
Directory Listing
Modified
Mon Sep 2 09:21:43 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP editor API: Fixed parsing of metric prefix "da" and unit type "Hz".
Revision
3590 -
Directory Listing
Modified
Mon Sep 2 09:03:31 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Implemented common real number math functions.
* Added built-in real number functions "round()", "ceil()", "floor()",
"sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()",
"cos()", "tan()", "asin()", "acos()", "atan()".
* Added built-in script real number constant "~NI_MATH_PI".
* Added built-in script real number constant "~NI_MATH_E".
* Added NKSP test cases for built-in functions "round()", "ceil()",
"floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()",
"sin()", "cos()", "tan()", "asin()", "acos()", "atan()".
* Bumped version (2.1.1.svn14).
Revision
3587 -
Directory Listing
Modified
Sat Aug 31 12:08:49 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
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
3586 -
Directory Listing
Modified
Fri Aug 30 18:59:21 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
* NKSP language: Fixed assignment to array variables which was
broken by floating point support introduction (svn r3573).
* Test cases: Added NKSP int array and real array tests for value
assignment and initialization of arrays.
* Bumped version (2.1.1.svn11).
Revision
3585 -
Directory Listing
Modified
Fri Aug 30 17:51:24 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Cleanup regarding multiple data types for built-in function args.
* NKSP VM API cleanup: Get rid of legacy method
VMFunction::argType(vmint iArg) which was already superseded by its new
replacement VMFunction::acceptsArgType(vmint iArg, ExprType_t type).
* NKSP parser: if wrong argument type was passed to a built-in function and
that built-in function accepts more than one data type for the argument,
then show all supported data types as parser error message.
* Bumped version (2.1.1.svn10).
Revision
3584 -
Directory Listing
Modified
Fri Aug 30 13:33:32 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
* NKSP VM API: Added 4 overridden methods to class VMNumberExpr:
evalCastInt(MetricPrefix_t), evalCastInt(MetricPrefix_t,MetricPrefix_t),
evalCastReal(MetricPrefix_t), evalCastReal(MetricPrefix_t,MetricPrefix_t)
as convenient methods for automatically converting values to expected
metric value basis.
* NKSP built-in function "wait()" accepts now both integers and real numbers
as argument.
* Bumped version (2.1.1.svn9).
Revision
3583 -
Directory Listing
Modified
Fri Aug 30 12:39:18 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
Moved function exprTypeOfVarName() from public API file common.h to
implementation internal file tree.h (since this function is only
intended to be called by the generated NKSP parser).
Revision
3582 -
Directory Listing
Modified
Fri Aug 30 12:23:40 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP VM refactoring: Renamed all methods, functions and
classes matching pattern '*ScalarNumber*' to simply '*Number*':
- Renamed classes VMScalarNumberExpr -> VMNumberExpr,
ScalarNumberExpr -> NumberExpr, ScalarNumberVariable ->
NumberVariable, ScalarNumberBinaryOp -> NumberBinaryOp,
VMScalarNumberResultFunction -> VMNumberResultFunction.
- Renamed method VMExpr::asScalarNumberExpr() -> VMExpr::asNumber().
- Renamed function isScalarNumber() -> isNumber().
Revision
3581 -
Directory Listing
Modified
Fri Aug 30 11:40:25 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
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
3577 -
Directory Listing
Modified
Wed Aug 28 15:23:23 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Introducing variable return type for built-in functions.
* Changed method signature VMFunction::returnType() ->
VMFunction::returnType(VMFnArgs* args) to allow built-in
functions to proclaim a different result value type depending
on the arguments to be passed to the function.
* Built-in script function abs() optionally accepts and returns
real number.
* Built-in script functions min() and max() optionally accept
real number arguments and return real number as result in that
case.
* Added real number test cases for the built-in abs(), min() and
max() functions.
* Bumped version (2.1.1.svn7).
Revision
3576 -
Directory Listing
Modified
Wed Aug 28 12:56:38 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Fixed negate operator which did not work with real numbers.
Revision
3575 -
Directory Listing
Modified
Wed Aug 28 11:12:04 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Added some initial floating point test cases.
* RTMath: Implemented floating point comparison methods
fEqual32(float,float) and fEqual64(double,double)
which take the expected floating point tolerances
into account.
* NKSP: Allow built-in exit() function to potentially
accept real type argument as well.
* NKSP: Added real number test cases for built-in
functions exit(), int_to_real(), real(), real_to_int()
and int(), as well as for the plus, minus and negate
language operators.
Revision
3574 -
Directory Listing
Modified
Wed Aug 28 08:26:54 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
NKSP: Cleanup of class inheritance scheme.
* scriptvm/tree.h: Mark all relevant classes with C++11 'final' keyword.
* scriptvm/tree.h: StringLiteral class has no need for virtually.
Revision
3573 -
Directory Listing
Modified
Tue Aug 27 21:36:53 2019 UTC
(4 years, 7 months ago)
by
schoenebeck
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 -
Directory Listing
Modified
Sat Aug 24 09:18:57 2019 UTC
(4 years, 8 months ago)
by
schoenebeck
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
3562 -
Directory Listing
Modified
Fri Aug 23 12:51:58 2019 UTC
(4 years, 8 months ago)
by
schoenebeck
* NKSP script editor API: Added support for detecting standard unit tokens
and their potential metric prefix token.
Revision
3561 -
Directory Listing
Modified
Fri Aug 23 11:44:00 2019 UTC
(4 years, 8 months ago)
by
schoenebeck
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 -
Directory Listing
Modified
Sun Aug 18 00:06:04 2019 UTC
(4 years, 8 months ago)
by
schoenebeck
* 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 -
Directory Listing
Modified
Thu Aug 1 10:22:56 2019 UTC
(4 years, 8 months ago)
by
schoenebeck
* 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
3455 -
Directory Listing
Modified
Sun Jan 27 10:07:54 2019 UTC
(5 years, 2 months ago)
by
persson
* Fixed some compiler warnings
* Fixed compilation error when cross-compiling to Mac
Revision
3345 -
Directory Listing
Modified
Thu Aug 10 13:18:06 2017 UTC
(6 years, 8 months ago)
by
schoenebeck
* Fixed compilation error with clang libc++.
Revision
3332 -
Directory Listing
Modified
Mon Jul 24 18:51:21 2017 UTC
(6 years, 9 months ago)
by
schoenebeck
* NKSP script editor syntax highlighting API: catch all fatal lexer
errors, to avoid the editor app to crash on ill-formed text input.
* Bumped version (2.0.0.svn74).
Revision
3311 -
Directory Listing
Modified
Sat Jul 15 16:24:59 2017 UTC
(6 years, 9 months ago)
by
schoenebeck
* NKSP: Added built-in preprocessor condition NKSP_NO_MESSAGE,
which can be set to disable all subsequent built-in "message()"
function calls on preprocessor level.
* Bumped version (2.0.0.svn71).
Revision
3309 -
Directory Listing
Modified
Sat Jul 15 01:15:59 2017 UTC
(6 years, 9 months ago)
by
schoenebeck
- Just a NKSP use case example.
Revision
3308 -
Directory Listing
Modified
Sat Jul 15 01:14:20 2017 UTC
(6 years, 9 months ago)
by
schoenebeck
* NKSP script editor API: Fixed app termination due to a lexer start
condition stack underrun.
* NKSP preprocessor: Fixed wrong behavior on nested USE_CODE_IF() and
USE_CODE_IF_NOT() preprocessor statements.
* Bumped version (2.0.0.svn70).
Revision
3293 -
Directory Listing
Modified
Tue Jun 27 22:19:19 2017 UTC
(6 years, 9 months ago)
by
schoenebeck
* 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
3292 -
Directory Listing
Modified
Sat Jun 24 13:43:09 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
- Just minor API cleanup.
Revision
3285 -
Directory Listing
Modified
Thu Jun 22 10:45:38 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* 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
3277 -
Directory Listing
Modified
Mon Jun 5 18:40:18 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* 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
3260 -
Directory Listing
Modified
Wed May 31 21:07:44 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* NKSP language: Added support for "synchronized .. end synchronized"
code blocks.
* Bumped version (2.0.0.svn60).
Revision
3259 -
Directory Listing
Modified
Wed May 31 14:41:04 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* NKSP language fix: Unknown characters were not handled correctly.
* Bumped version (2.0.0.svn59).
Revision
3257 -
Directory Listing
Modified
Tue May 30 17:20:02 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* NKSP language: Added support for user declared const array variables.
* NKSP language: Raise parser warning if array variable is accessed with
an index that exceeds the array's size.
* Bumped version (2.0.0.svn58).
Revision
3253 -
Directory Listing
Modified
Tue May 30 12:08:45 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* 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
3222 -
Directory Listing
Modified
Fri May 26 18:55:45 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
- Fixed compilation error with some compilers.
Revision
3221 -
Directory Listing
Modified
Fri May 26 18:30:42 2017 UTC
(6 years, 10 months ago)
by
schoenebeck
* 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
3208 -
Directory Listing
Modified
Thu May 25 11:39:03 2017 UTC
(6 years, 11 months ago)
by
schoenebeck
- Fixed compilation error with some compilers.
Revision
3207 -
Directory Listing
Modified
Thu May 25 10:53:45 2017 UTC
(6 years, 11 months ago)
by
schoenebeck
* NKSP: Fixed polyphonic variables not being reset to zero
after usage.
* Bumped version (2.0.0.svn48).
Revision
3118 -
Directory Listing
Modified
Fri Apr 21 13:33:03 2017 UTC
(7 years ago)
by
schoenebeck
* 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
3078 -
Directory Listing
Modified
Thu Jan 5 18:11:00 2017 UTC
(7 years, 3 months ago)
by
schoenebeck
- Just minor update to NKSP example.
Revision
3076 -
Directory Listing
Modified
Thu Jan 5 18:00:52 2017 UTC
(7 years, 3 months ago)
by
schoenebeck
* NKSP: Implemented built-in script function "in_range()".
* Bumped version (2.0.0.svn36).
Revision
3073 -
Directory Listing
Modified
Thu Jan 5 16:04:00 2017 UTC
(7 years, 3 months ago)
by
schoenebeck
* NKSP: Implemented built-in script array variable "%ALL_EVENTS".
* Bumped version (2.0.0.svn35).
Revision
3060 -
Directory Listing
Modified
Fri Dec 16 14:05:20 2016 UTC
(7 years, 4 months ago)
by
schoenebeck
- Fixed some minor few compiler warnings.
Revision
3056 -
Directory Listing
Modified
Fri Dec 16 12:57:59 2016 UTC
(7 years, 4 months ago)
by
schoenebeck
* RT Instrument Scripts: Fixed crash when using built-in script function
"by_marks()".
* LSCP Server: Fixed client connection not being closed after network error.
* Fixed some more few compiler warnings.
* Bumped version (2.0.0.svn33).
Revision
3054 -
Directory Listing
Modified
Thu Dec 15 12:47:45 2016 UTC
(7 years, 4 months ago)
by
schoenebeck
* Fixed numerous compiler warnings.
* Bumped version (2.0.0.svn32).
Revision
3052 -
Directory Listing
Modified
Wed Dec 14 17:34:54 2016 UTC
(7 years, 4 months ago)
by
schoenebeck
- Preparations for Xcode project update.
Revision
3035 -
Directory Listing
Modified
Mon Oct 31 12:00:00 2016 UTC
(7 years, 5 months ago)
by
schoenebeck
* Check compiler for supported pragma diagnostics to avoid
compiler errors.
Revision
3034 -
Directory Listing
Modified
Mon Oct 31 00:05:00 2016 UTC
(7 years, 5 months ago)
by
schoenebeck
* Fixed a bunch of minor issues (mostly compiler warnings).
* Bumped version (2.0.0.svn31).
Revision
3013 -
Directory Listing
Modified
Sat Oct 15 23:54:27 2016 UTC
(7 years, 6 months ago)
by
schoenebeck
* NKSP: Fixed NKSP parser warning "Not a statement" when assigning an
initializer list to an array variable.
* Bumped version (2.0.0.svn27).
Revision
3012 -
Directory Listing
Modified
Wed Oct 12 12:50:37 2016 UTC
(7 years, 6 months ago)
by
schoenebeck
- Just updated API doc comments.
Revision
3008 -
Directory Listing
Modified
Tue Oct 11 18:25:12 2016 UTC
(7 years, 6 months ago)
by
schoenebeck
* NKSP: Provide more user friendly error messages on syntax errors.
* Bumped version (2.0.0.svn26).
Revision
2974 -
Directory Listing
Modified
Fri Jul 22 15:51:40 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* ScriptVM: Implemented automatic suspension of RT safety
threatening scripts.
* Bumped version (2.0.0.svn25).
Revision
2972 -
Directory Listing
Modified
Fri Jul 22 14:37:34 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* 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 -
Directory Listing
Modified
Thu Jul 21 16:22:55 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* NKSP: Implemented built-in script function "min()".
* NKSP: Implemented built-in script function "max()".
* Bumped version (2.0.0.svn23).
Revision
2965 -
Directory Listing
Modified
Mon Jul 18 09:42:28 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* NKSP: Implemented built-in script function "sh_left()".
* NKSP: Implemented built-in script function "sh_right()".
* Bumped version (2.0.0.svn22).
Revision
2960 -
Directory Listing
Modified
Sun Jul 17 12:10:06 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
- Just some minor API doc comment update.
Revision
2951 -
Directory Listing
Modified
Fri Jul 15 20:07:47 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* NKSP language: Added support for user defined script functions.
* Bumped version (2.0.0.svn18).
Revision
2948 -
Directory Listing
Modified
Fri Jul 15 15:29:04 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* 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
2947 -
Directory Listing
Modified
Thu Jul 14 10:37:28 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* NKSP language correction: allow empty statements in entire language
(i.e. "if end if").
* Bumped version (2.0.0.svn16).
Revision
2945 -
Directory Listing
Modified
Thu Jul 14 00:22:26 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* 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
2942 -
Directory Listing
Modified
Wed Jul 13 15:51:06 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* NKSP: Implemented built-in script variable "$KSP_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_REAL_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_PERF_TIMER".
* NKSP: Implemented built-in script variable "$ENGINE_UPTIME".
* Bumped version (2.0.0.svn14).
Revision
2935 -
Directory Listing
Modified
Sun Jul 10 14:24:13 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
* 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
2934 -
Directory Listing
Modified
Sun Jul 10 14:05:13 2016 UTC
(7 years, 9 months ago)
by
schoenebeck
- Fixed polyphonic bug in delay effect NKSP example script.
Revision
2911 -
Directory Listing
Modified
Mon May 16 20:27:33 2016 UTC
(7 years, 11 months ago)
by
schoenebeck
* NKSP language grammar correction: allow empty event handler bodies
like "on note end on".
* Bumped version (2.0.0.svn9).
Revision
2889 -
Directory Listing
Modified
Mon Apr 25 17:28:23 2016 UTC
(8 years ago)
by
schoenebeck
* Added new C++ API class "ScriptVMFactory".
* Instrument Scripts: extended parser issues to provide not only first
line and first column, but also last line and last column of issue
(thus marking the precise span of the issue within the source code).
* Bumped version (2.0.0.svn7).
Revision
2888 -
Directory Listing
Modified
Sun Apr 24 18:16:10 2016 UTC
(8 years ago)
by
schoenebeck
* Instrument Scripts: Fixed line numbers on parser error/warning messages.
* Instrument Scripts: Added output of precise column on parser
error/warning messages.
* Shut up some irrelevant errors of parser generating shell scripts.
* Bumped version (2.0.0.svn6).
Revision
2885 -
Directory Listing
Modified
Fri Apr 22 15:37:45 2016 UTC
(8 years ago)
by
schoenebeck
* Instrument script classes now exported with the liblinuxsampler C++ API.
* Added new API method ScriptVM::syntaxHighlighting() which provides
a convenient syntax highlighting backend for external instrument
script editor applications.
* Bumped version (2.0.0.svn5).
Revision
2879 -
Directory Listing
Modified
Tue Apr 19 14:07:53 2016 UTC
(8 years ago)
by
schoenebeck
* 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 -
Directory Listing
Modified
Sun Apr 10 18:22:23 2016 UTC
(8 years ago)
by
schoenebeck
* 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
2837 -
Directory Listing
Modified
Sun Aug 23 06:14:00 2015 UTC
(8 years, 8 months ago)
by
persson
* fixed printf type errors (mostly in debug messages)
Revision
2729 -
Directory Listing
Modified
Tue Mar 31 17:56:21 2015 UTC
(9 years ago)
by
schoenebeck
- Just added API doc comments to Script VM code.
Revision
2728 -
Directory Listing
Modified
Tue Mar 31 17:51:10 2015 UTC
(9 years ago)
by
schoenebeck
- Just added API doc comments to Script VM code.
Revision
2727 -
Directory Listing
Modified
Tue Mar 31 17:46:11 2015 UTC
(9 years ago)
by
schoenebeck
- Just added API doc comments to Script VM code.
Revision
2645 -
Directory Listing
Modified
Wed Jun 18 00:14:57 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* RT instrument scripts: Pass/preserve polyphonic variable data
from respective "note" event handler to "release" event handler.
* Fixed theoretical memory leak regarding instrument scripts.
* Bumped version (1.0.0.svn54).
Revision
2630 -
Directory Listing
Modified
Fri Jun 13 15:01:06 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* 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
2620 -
Directory Listing
Modified
Wed Jun 11 13:31:27 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
- Fixed compile error on Windows.
Revision
2619 -
Directory Listing
Modified
Wed Jun 11 13:24:32 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* 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
2612 -
Directory Listing
Modified
Tue Jun 10 13:32:16 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* Fixed crashes when exiting the sampler.
* Bumped version (1.0.0.svn47).
Revision
2611 -
Directory Listing
Modified
Mon Jun 9 19:20:37 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* Fixed crash when loading an instrument script.
* Fixed "init" script handler only to be executed once:
when the script was loaded.
* Fixed aftertouch script event which always had value zero
and controller number was set to aftertouch value instead.
* gig Engine: Fixed handling of "smartmidi" dimension, which
was recognized as "unknown" dimension.
* Fixed script function gig_set_dim_zone(): was accessing
wrong event.
* ls_instr_script command line tool: is now not limited to
core language scripts, but can now also parse sampler format
dependent instrument scripts, with the respective specific
built-in script variables and functions.
* ScriptVM: Fixed runtime behavior of "and" and "or" binary
script expressions, which also evaluated the right hand side
of the expression even if the left hand side already failed
the overall expression semantic to become true.
* Bumped version (1.0.0.svn46).
Revision
2598 -
Directory Listing
Modified
Fri Jun 6 12:38:54 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* 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 -
Directory Listing
Modified
Thu Jun 5 19:39:12 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* 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
2594 -
Directory Listing
Modified
Thu Jun 5 00:16:25 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* ScriptVM (WIP): started to integrate real-time instrument script
support into the sampler engine implementations. The code is
shared among all sampler engines, however currently only the gig
file format supports storing instrument scripts (as LinuxSampler
extension to the original GigaStudio 4 file format).
* gig engine: Added support for loading instrument scripts from .gig
files.
* ScriptVM (WIP): Implemented built-in script variables %CC, $CC_NUM,
$EVENT_NOTE, $EVENT_VELOCITY, $VCC_MONO_AT, $VCC_PITCH_BEND.
* ScriptVM (WIP): Implemented execution of script event handler "init".
* ScriptVM (WIP): Implemented execution of script event handler
"controller".
* Bumped version (1.0.0.svn42).
Revision
2588 -
Directory Listing
Modified
Sun Jun 1 14:44:38 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* ScriptVM: refactoring and fixes.
Revision
2585 -
Directory Listing
Modified
Sat May 31 21:09:25 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* Fixed compile error on Windows.
Revision
2581 -
Directory Listing
Added
Fri May 30 12:48:05 2014 UTC
(9 years, 10 months ago)
by
schoenebeck
* (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).