/[svn]/linuxsampler/trunk/ChangeLog
ViewVC logotype

Diff of /linuxsampler/trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2568 by schoenebeck, Tue May 20 14:53:06 2014 UTC revision 3686 by schoenebeck, Thu Jan 2 22:02:53 2020 UTC
# Line 1  Line 1 
1  Version CVS HEAD (?)  Version SVN trunk (?)
2    
3      * general changes:
4        - Fixed compiler error in Pool.h.
5        - Require C++14 compiler support.
6        - Autoconf: Added m4/ax_cxx_compile_stdcxx.m4 macro which is used
7          for checking in configure for C++14 support (as mandatory
8          requirement) and automatically adds compiler argument if required
9          (e.g. -std=C++14).
10        - RTMath: Implemented floating point comparison methods
11          fEqual32(float,float) and fEqual64(double,double) which take the
12          expected floating point tolerances into account.
13        - Added public API C++ class "LFO", which is a cluster class encapsulating
14          all the sampler's LFO implementations to be used by 3rd party applications
15          (e.g. by Gigedit).
16        - Added int math square LFO implementation.
17        - Added int math saw LFO implementation.
18        - Added numeric complex nr sine LFO implementation.
19        - Marked class LFOTriangleDiHarmonic as deprecated
20          (will be removed in future).
21        - Added LFOAll.h which includes all LFO implementation's header files.
22        - Refactored LFO class names and their file names (PulseLFO -> LFOPulse,
23          LFOSawIntMath -> LFOSawIntMathNew, SawLFO -> LFOSawIntMathOld,
24          SineLFO -> LFOSineBuiltinFn, LFOSine -> LFOSineNumericComplexNr,
25          SquareLFO -> LFOSquarePulse and separated the latter to its own header
26          file).
27        - Renamed type LFOSigned -> LFOTriangleSigned.
28        - Renamed type LFOUnsigned -> LFOTriangleUnsigned.
29        - Using now cubic interpolation as resampling algorithm by default; and
30          linear interpolation is deprecated now.
31        - Event:Init(): memset() entire Event::Param union to zero instead of trying
32          to do that for its individual members; the latter became error prone due
33          to the union's growing complexity meanwhile.
34    
35      * Real-time instrument scripts:
36        - Added method ScriptVM::setExitResultEnabled() which allows to
37          explicitly enable the built-in exit() function to optionally accept
38          one function argument; the value of the passed exit() function
39          argument will then become available by calling
40          VMExecContext::exitResult() after script execution.
41        - 64 bit support for NKSP integer scripts variables (declare $foo).
42        - Variable names, function names and preprocessor condition names must start
43          with a regular character (a-z or A-Z); starting them with a digit or
44          underscore is not allowed.
45        - NKSP parser fix: equal comparison operator "=" and not equal comparison
46          operator "#" must only accept integer operands.
47        - NKSP language: Implemented support for standard units like Hertz, seconds,
48          Bel including support for metric unit prefixes; so one can now e.g.
49          conveniently use numbers in scripts like "5us" meaning "5 microseconds",
50          or e.g. "12kHz" meaning "12 kilo Hertz", or e.g. "-14mdB" meaning
51          "minus 14 Millidecibel", or e.g. "28c" meaning "28 cents" (for tuning).
52        - NKSP language: Introduced "final" operator "!" which is specifically
53          intended for synthesis parameter values to denote that the synthesis
54          parameter value is intended to be the "final" value for that synthesis
55          parameter that should explicitly be used by the engine and thus causing
56          the sampler engine to ignore all other modulation sources for the same
57          synthesis parameter (like e.g. LFO, EG); by simply prefixing a value,
58          variable or formula with this new "!" operator the expression is marked as
59          being "final".
60        - NKSP script editor API: Added support for detecting standard unit tokens
61          and their potential metric prefix token.
62        - NKSP language: Added support for NKSP real number literals and
63          arithmetic operations on them (e.g. "(3.9 + 2.9) / 12.3 - 42.0").
64        - NKSP language: Added support for NKSP real number (floating point) script
65          variables (declare ~foo).
66        - NKSP language: Added support for NKSP real number (floating point) array
67          script variables (declare ?foo[]).
68        - Built-in script function "message()" accepts now real number argument as
69          well.
70        - Added built-in script function "real_to_int()" and its short hand form
71          "int()" for casting from real number to integer in NKSP scripts.
72        - Added built-in script function "int_to_real()" and its short hand form
73          "real()" for casting from integer to real number in NKSP scripts.
74        - Allow built-in exit() function to potentially accept real number type
75          argument as well.
76        - Built-in script functions may have a different return type depending on
77          the arguments passed to the function.
78        - Built-in script function "abs()" optionally accepts and returns real
79          number.
80        - Built-in script functions "min()" and "max()" optionally accept real
81          number arguments and return real number as result in that case.
82        - NKSP VM API: Allow units and 'final'ness to be returned as result from
83          built-in functions (added methods VMFunction::returnUnitType() and
84          VMFunction::returnsFinal() for that purpose which must be implemented by
85          built-in function implementations).
86        - NKSP language: Allow metric unit prefixes of numeric scalar and array
87          variables to be changed freely at runtime (unlike unit types like Hz etc.
88          which are still sticky, parse-time features of variables which cannot be
89          changed at runtime for the intentional sake of determinism).
90        - NKSP language: 'final' values are prohibited for array variables for now
91          (attempt causes a parsers error).
92        - NKSP language: expressions with unit types (e.g. Hz) are prohibited for
93          conditions of runtime control structures like if(), while(), select()
94          (attempt causes a parser error).
95        - NKSP VM API: Allow built-in functions to perform their own, individual
96          parse time checks of arguments going to be passed to the function at
97          runtime (added method VMFunction::checkArgs() for that purpose).
98        - NKSP language: raise parser warning if only one operand of binary
99          operators (like logical 'or' comparison) contain a 'final' value (because
100          it would always yield in a 'final' result in such cases).
101        - NKSP language: Allow comparison (=, #, <, >, <=, >=) of values with
102          different metric unit prefixes, which will behave as expected (e.g.
103          result of expression '1000us < 2ms' is true).
104        - NKSP language: Allow adding values with different metric unit prefixes
105          (e.g. result of expression '100Hz + 5kHz' is '5100Hz').
106        - NKSP language: Allow subtracting values with different metric unit
107          prefixes (e.g. result of expression '1ms - 20us' is '980us').
108        - NKSP language: Allow multiplying with any metric unit prefixes
109          (e.g. result of expression '2k * 3ms' is '6s'), however multiplications
110          with unit types on both sides (e.g. '2s * 2s') is still prohibited since
111          we don't have any considerable practical use for a term like '4s^2'
112          (hence any attempt multiplying two unit types still causes parser error).
113        - NKSP language: Allow dividing by any metric unit prefixes and allow
114          division of same unit type on both sides (e.g. expression '8kHz / 1000Hz'
115          yields in unit free result '8'). So this is now a way to cast units away
116          e.g. for passing the result to other expressions, certain function calls
117          or variables which are not accepting any units (or that specific unit).
118        - NKSP language: integer arrays and real number arrays can now be converted
119          to strings (e.g. for dumping their content with message() calls for
120          script debugging purposes).
121        - NKSP language: expressions and variables with units are now correctly
122          casted to strings (e.g. with message() calls).
123        - NKSP language: comparing real numbers for equalness (e.g. '~foo = 3.1') or
124          unequalness (e.g. '~foo # 3.1') is now less strict and takes the expected
125          floating point tolerances into account.
126        - NKSP VM API: Added methods VMScalarNumberExpr::evalCastInt() and
127          VMScalarNumberExpr::evalCastReal().
128        - NKSP VM API: Added base class 'VMNumberArrayExpr' for classes
129          'VMIntArrayExpr' and 'VMRealArrayExpr'.
130        - NKSP VM API: replaced all unitPrefix() (parse time) methods by
131          unitFactor() (runtime) methods.
132        - Built-in function "exit()" supports now returning units and 'final'ness
133          for test cases.
134        - The following built-in functions support now units as well: "abs()",
135          "random()", "inc()", "dec()", "in_range()", "min()", "max()",
136          "real_to_int()", "int()", "int_to_real()" and "real()".
137        - Built-in functions "array_equal()", "search()" and "sort()" support now
138          real number arrays (correctly) as well.
139        - Added individual parse time checks of arguments to be passed to built-in
140          functions "random()", "inc()", "dec()", "in_range()", "min()", "max()",
141          "array_equal()" and "search()" specific for their individual purposes.
142        - NKSP VM refactoring: Renamed all methods, functions and classes matching
143          pattern *ScalarNumber* to simply *Number* (that is i.e. classes
144          VMScalarNumberExpr -> VMNumberExpr, ScalarNumberExpr -> NumberExpr,
145          ScalarNumberVariable -> NumberVariable, ScalarNumberBinaryOp ->
146          NumberBinaryOp, VMScalarNumberResultFunction -> VMNumberResultFunction,
147          method VMExpr::asScalarNumberExpr() -> VMExpr::asNumber(), function
148          isScalarNumber() -> isNumber()).
149        - NKSP VM API: Added 4 overridden methods to class VMNumberExpr:
150          evalCastInt(MetricPrefix_t), evalCastInt(MetricPrefix_t,MetricPrefix_t),
151          evalCastReal(MetricPrefix_t), evalCastReal(MetricPrefix_t,MetricPrefix_t)
152          as convenient methods for automatically converting values to expected
153          metric value basis.
154        - Built-in function "wait()" accepts now both integers and real numbers as
155          argument.
156        - NKSP VM API cleanup: Get rid of legacy method
157          VMFunction::argType(vmint iArg) which was already superseded by its new
158          replacement VMFunction::acceptsArgType(vmint iArg, ExprType_t type).
159        - NKSP parser: if wrong argument type was passed to a built-in function and
160          that built-in function accepts more than one data type for the argument,
161          then show all supported data types as parser error message.
162        - Built-in function "play_note()" accepts now real numbers and seconds as
163          unit type as well for its 3rd and 4th function arguments.
164        - The following built-in functions accept now real numbers as well for their
165          2nd function argument: "change_vol()", "change_tune()", "change_cutoff()",
166          "change_attack()", "change_decay()", "change_release()",
167          "change_sustain()", "change_cutoff_attack()", "change_cutoff_decay()",
168          "change_cutoff_sustain()", "change_cutoff_release()",
169          "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
170          "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()",
171          "change_pan_time()", "fade_in()", "fade_out()", "change_play_pos()".
172        - Fixed built-in function "change_play_pos()" not having accepted metric
173          prefixes at all.
174        - Fixed the following built-in functions having misinterpreted values given
175          with unit type (for their 2nd argument) as if they were relative values
176          (that is as if they were passed without a unit type): "change_attack()",
177          "change_decay()", "change_release()", "change_cutoff_attack()",
178          "change_cutoff_decay()", "change_cutoff_release()".
179        - Fixed the following built-in functions having applied completely wrong
180          'final' values: "change_sustain()", "change_cutoff_sustain()" (since the
181          respective EGs being their modulation sink assume uint data type with
182          value range 0..1000 instead of 0.0..1.0.
183        - Added individual parse-time checks of function arguments for the following
184          built-in functions: "play_note()", "note_off()", "set_event_mark()",
185          "delete_event_mark()", "by_marks()", "change_cutoff()", "change_attack()",
186          "change_decay()", "change_release()", "change_cutoff_attack()",
187          "change_cutoff_decay()", "change_cutoff_release()",
188          "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
189          "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()" and
190          "change_pan_time()".
191        - Don't abort function call if unit type was used and at the same time
192          'final' operator was omitted for the primary value argument of the
193          following built-in functions: "change_cutoff()", "change_attack()",
194          "change_decay()", "change_release()", "change_cutoff_attack()",
195          "change_cutoff_decay()", "change_cutoff_release()",
196          "change_amp_lfo_freq()", "change_cutoff_lfo_freq()",
197          "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()",
198          "change_pan_time()", instead imply 'final'ness at runtime and raise an
199          appropriate parser warning at parse time.
200        - Added built-in real number functions "round()", "ceil()", "floor()",
201          "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()",
202          "cos()", "tan()", "asin()", "acos()", "atan()".
203        - Added built-in script real number constant "~NI_MATH_PI".
204        - Added built-in script real number constant "~NI_MATH_E".
205        - NKSP language: Allow unary '+' operator.
206        - Added built-in script functions "msb()" and "lsb()".
207    
208      * test cases:
209        - Fixed compiler errors in test cases.
210        - Updated README for how to compile & run test cases.
211        - Updated test case
212          MutexTest::testDoubleLockStillBlocksConcurrentThread() to latest
213          expected behaviour of the Mutex class implementation (recursive
214          mutex type).
215        - Added test cases for NKSP core language aspects and core built-in
216          functions.
217        - Fixed thread tests segfaulting on Linux.
218        - NKSP: Added real number test cases for built-in functions exit(),
219          int_to_real(), real(), real_to_int() and int(), as well as for the
220          plus, minus and negate language operators.
221        - Added massive amount of NKSP test cases for standard measuring units and
222          'final' operator usage cases.
223        - Added NKSP test cases for (floating point tolerance aware) real number
224          equalness / unequalness comparison.
225        - Added NKSP int array and real array tests for value assignment and
226          initialization of arrays.
227        - Added NKSP test cases for built-in functions "round()", "ceil()",
228          "floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()",
229          "sin()", "cos()", "tan()", "asin()", "acos()", "atan()".
230        - Added NKSP test cases for unary '+' operator.
231    
232      * GigaStudio/Gigasampler format engine:
233        - LFOTriangleIntMath and LFOTriangleIntAbsMath: Fixed FlipPhase=true
234          behaviour for start_level_mid.
235        - Changed LFO start levels: LFO1 and LFO2 both to mid, LFO3 to max. start
236          level (see discussion "GigaStudio LFO compatibility" on mailing list
237          from 2019-09-26 for details).
238        - Changed default wave form for all 3 LFOs to sine (instead of triangle;
239          see discussion "GigaStudio LFO compatibility" on mailing list from
240          2019-09-26 for details).
241        - Format extension: Added support for different LFO wave forms (currently
242          either sine [default], triangle, saw or square).
243        - Format extension: Added support for LFO phase displacement (0°..360°).
244        - Format extension: Added support for flipping LFO polarity on LFO 3
245          (in the original gig format this was only available for LFO 1 and LFO 2).
246        - Format extension: Support for additional filter types:
247          lowpass 1/2/4/6-pole, highpass 1/2/4/6-pole, bandpass 2-pole,
248          bandreject 2-pole.
249    
250      * SFZ format engine:
251        - Fixed support for regions with loccN/hiccN conditions on more than one
252          MIDI controller.
253    
254      * Benchmarks:
255        - Fixed benchmarks/triang.cpp falsely having favoured "int math abs"
256          algorithm (since result of 2nd run was not accumulated).
257        - Added benchmark for saw wave (benchmarks/saw.cpp).
258        - Added benchmark for sine wave (benchmarks/sine.cpp).
259        - Added benchmark for square wave (benchmarks/square.cpp).
260        - Increased amount of benchmarks runs by factor 6 to achieve benchmark times
261          which are large enough on modern systems.
262    
263    Version 2.1.1 (27 Jul 2019)
264    
265      * Real-time instrument scripts:
266        - Fixed behavior of built-in NKSP functions change_sustain(),
267          change_cutoff_attack(), change_cutoff_decay(), change_cutoff_sustain()
268          and change_cutoff_release().
269    
270      * general changes:
271        - Only play release trigger samples on sustain pedal up if this behaviour
272          was explicitly requested by the instrument (otherwise only on note-off).
273        - Fixed compiler warnings.
274        - Fixed compilation error when cross-compiling to Mac.
275        - FX Sends: Provide more useful error messages on routing problems
276          (see bug #169).
277        - LSCP doc: Be more clear describing the two distinct approaches
278          of using external vs. internal effects (see bug #169).
279        - "optional" class: Fixed comparison operators.
280    
281      * Gigasampler/GigaStudio format engine:
282        - Format extension: If requested by instrument then don't play release
283          trigger sample on note-off events.
284    
285      * SFZ format engine:
286        - Fixed memory leak when releasing samples
287          (fixes bug #307, patch by Jacek Roszkowski)
288        - Fixed potential crash when a sample is shared by more than one region
289          (fixes bug #308, patch by Jacek Roszkowski).
290        - Opcode 'sample': Added support for built-in sample '*silence'
291          (fixes bug #310, patch by Jacek Roszkowski).
292    
293    Version 2.1.0 (25 Nov 2017)
294    
295      * SFZ format engine:
296        - added support for <global>, <master> and #define (patch by Alby M)
297        - Removed code duplication in SFZ file loading code.
298        - Added support for sfz extension opcode 'script' which may be used to
299          load real-time instrument script file (NKSP script language).
300        - Implemented opcode set_ccN (initial patch by Giovanni Senatore).
301        - Fixed unintended volume fade-in of voices under certain conditions.
302        - sfz parser: allow missing space between header and opcode
303    
304      * Gigasampler/GigaStudio format engine:
305        - Fixed clicks and pumping noise with Lowpass Turbo filter on very low
306          cutoff settings.
307        - Got rid of resembling an ancient GSt misbehavior which did not pitch at
308          all if an up-pitch of more than 40 semi tones was requested (I don't
309          think there is any stock gig sound that requires this behavior to
310          resemble its original sound).
311        - Added support for controlling whether the individual EGADSR stages may
312          be aborted (as LinuxSampler extension to the original GigaStudio 4
313          format).
314    
315      * general changes:
316        - fixed printf type errors (mostly in debug messages)
317        - use unique_ptr instead of auto_ptr when building with C++11
318        - Added RTAVLTree class which is a real-time safe ordered multi-map, thus
319          allowing to sort data efficiently in real-time safe manner.
320        - RTList class: added methods for moving/inserting elements to arbitrary
321          position within a list.
322        - RTList class: added method fromPtr() for creating an Iterator object from
323          a raw element pointer.
324        - Attempt to partly fix resetting engine channels vs. resetting engine, an
325          overall cleanup of the Reset*(), ConnectAudioDevice(),
326          DisconnectAudioDevice() API methods would still be desirable though,
327          because the current situation is still inconsistent and error prone.
328        - Active voices are now internally grouped to "Note" objects, instead of
329          being directly assigned to a keyboard key. This allows more fine graded
330          processing of voices, which is i.e. required for certain instrument
331          script features.
332        - Fix: Release trigger voices were not spawned on sustain pedal up
333          (CC #64) events.
334        - Fix: Release trigger voices can now also distinguish correctly between
335          note-off and sustain pedal up events.
336        - All engines: Increased ramp speed of volume smoother and pan smoother
337          (while slow rate of crossfade smoother is preserved) to allow quick
338          volume and pan changes by instrument scripts for instance.
339        - gig/sf2/sfz: Fixed aftertouch channel pressure events being processed
340          properly and thus were ignored for certain uses.
341        - Added new C++ API method
342          VirtualMidiDevice::SendChannelPressureToSampler().
343        - windows, 32-bit: fixed potential crashes by making sure the stack in
344          sub threads is 16-byte aligned
345        - fixed numerous compiler warnings
346        - Fixed invalid (note-on) event ID being assigned to new Note objects.
347        - Revised fundamental C++ classes "Thread", "Mutex" and "Condition" which
348          fixes potential undefined behavior.
349        - Fixed Note object leak when triggering notes on keys which did not
350          have a valid sample mapped (fixes bug #252).
351        - Fixed compilation errors when compiling with CONFIG_DEVMODE enabled.
352        - linuxsampler binary fix: option --create-instruments-db ignored
353          subsequent optional argument due to glibc's implementation oddity
354          which expects a "=" sign, but no space between them.
355    
356      * packaging changes:
357        - removed unnecessary dependency to libuuid
358          (originated by libgig's usage of it)
359        - Automake: set environment variable GCC_COLORS=auto to allow GCC to
360          auto detect whether it (sh/c)ould output its messages in color.
361        - Debian: Fixed packaging error about invalid "Source-Version"
362          substitution variable.
363        - Debian: Raised Debian compatibility level to Debian 9 "Stretch".
364        - Debian: Added build dependency to libsqlite3-dev for building
365          linuxsampler with instruments DB support.
366    
367      * Real-time instrument scripts:
368        - Implemented scheduler for delayed MIDI events and for suspended scripts.
369        - Built-in script function "wait()": implemented support for function's
370          "duration-us" argument, thus scripts using this function are now
371          correctly resumed after the requested amount of microseconds.
372        - Built-in script function "play_note()": implemented support for
373          function's "duration-us" argument, thus notes triggered with this
374          argument are now correctly released after the requested amount of
375          microseconds.
376        - Fix: script events were not cleared when engine channel was reset,
377          potentially causing undefined behavior.
378        - Fixed crash which happened when trying to reference an undeclared
379          variable.
380        - Built-in script function "play_note()": Added support for passing
381          special value -1 for "duration-us" argument, which will cause the
382          triggered note to be released once the original note was released.
383        - Instrument script classes now exported with the liblinuxsampler C++ API.
384        - Added new API method ScriptVM::syntaxHighlighting() which provides
385          a convenient syntax highlighting backend for external instrument
386          script editor applications.
387        - Added new C++ API class "ScriptVMFactory".
388        - Extended parser issues to provide not only first line and first
389          column, but also last line and last column of issue (thus marking
390          the precise span of the issue within the source code).
391        - Reload script automatically after being modified by an instrument
392          editor.
393        - NKSP language grammar correction: allow empty event handler bodies
394          like "on note end on".
395        - Implemented built-in script function "change_vol()".
396        - Implemented built-in script function "change_tune()".
397        - Implemented built-in script function "change_pan()".
398        - Implemented built-in script function "change_cutoff()".
399        - Implemented built-in script function "change_reso()".
400        - Implemented built-in script function "event_status()".
401        - Added built-in script constants "$EVENT_STATUS_INACTIVE" and
402          "$EVENT_STATUS_NOTE_QUEUE" both for being used as flags for
403          "event_status()" function.
404        - NKSP language: Added support for bitwise operators ".or.", ".and."
405          and ".not.".
406        - NKSP language scanner: Fixed IDs matching to require at least one
407          character (i.e. when matching function names or variable names).
408        - NKSP language scanner: disabled unusued rules.
409        - Fixed behavior of play_note() and note_off() functions which must
410          be distinguished engine internally from "real" MIDI note on/off
411          events in order to avoid misbehaviors like hanging notes.
412        - Implemented built-in script variable "$KSP_TIMER".
413        - Implemented built-in script variable "$NKSP_REAL_TIMER".
414        - Implemented built-in script variable "$NKSP_PERF_TIMER".
415        - Implemented built-in script variable "$ENGINE_UPTIME".
416        - Implemented built-in script function "inc()".
417        - Implemented built-in script function "dec()".
418        - NKSP language fix: division expressions were evaluated too often.
419        - NKSP language fix: string concatenation operator was right
420          associative instead of left (to right).
421        - NKSP language correction: allow empty statements in entire language
422          (i.e. "if end if").
423        - Implemented built-in script function "stop_wait()".
424        - Implemented built-in script variable "$NI_CALLBACK_ID".
425        - Implemented built-in script variable "$NI_CALLBACK_TYPE".
426        - Implemented built-in script variable "$NKSP_IGNORE_WAIT".
427        - Added support for read-only built-in variables (respectively
428          handled by the script parser).
429        - Added built-in script constant "$NI_CB_TYPE_INIT".
430        - Added built-in script constant "$NI_CB_TYPE_NOTE".
431        - Added built-in script constant "$NI_CB_TYPE_RELEASE".
432        - Added built-in script constant "$NI_CB_TYPE_CONTROLLER".
433        - NKSP Language: Added support for user defined script functions.
434        - Implemented built-in script function "change_attack()".
435        - Implemented built-in script function "change_decay()".
436        - Implemented built-in script function "change_release()".
437        - Fixed all change_*() built-in script functions to apply their
438          synthesis parameter changes immediately in case the respective note
439          was triggered at the same time, instead of scheduling the parameter
440          change, especially because it would cause some parameter types's
441          changes either to be ramped (i.e. change_vol()) or other types even
442          to have not effect at all (i.e. change_attack()).
443        - Implemented built-in script function "sh_left()".
444        - Implemented built-in script function "sh_right()".
445        - Implemented built-in script function "min()".
446        - Implemented built-in script function "max()".
447        - NKSP Fix: "init" event handler was not always executed when a script
448          was loaded.
449        - NKSP built-in wait() script function: abort script execution if
450          a negative or zero wait time was passed as argument (since this is
451          a common indication of a bug either of the script or even of the
452          engine, which could lead to RT instability or even worse).
453        - ScriptVM: Implemented automatic suspension of RT safety
454          threatening scripts.
455        - Provide more user friendly error messages on syntax errors.
456        - Fixed NKSP parser warning "Not a statement" when assigning an
457          initializer list to an array variable.
458        - Implemented built-in script array variable "%ALL_EVENTS".
459        - Implemented built-in script function "in_range()".
460        - Implemented built-in script function "change_amp_lfo_depth()".
461        - Implemented built-in script function "change_amp_lfo_freq()".
462        - Implemented built-in script function "change_pitch_lfo_depth()".
463        - Implemented built-in script function "change_pitch_lfo_freq()".
464        - Implemented built-in script function "change_vol_time()".
465        - Implemented built-in script function "change_tune_time()".
466        - Implemented built-in script function "fade_in()".
467        - Implemented built-in script function "fade_out()".
468        - Fixed acceptance of wrong data type of parameters passed to built-in
469          script functions "change_vol()", "change_tune()", "change_pan()",
470          "change_cutoff()", "change_reso()", "change_attack()", "change_decay()",
471          "change_release()", "change_amp_lfo_depth()", "change_amp_lfo_freq()",
472          "change_pitch_lfo_depth()" and "change_pitch_lfo_freq()".
473        - Added built-in script function "get_event_par()" and implemented some
474          of its possible parameter selections.
475        - Added built-in script function "set_event_par()" and implemented some
476          of its possible parameter selections.
477        - Fixed a bunch of scheduler time related bugs.
478        - Fixed polyphonic variables not being reset to zero after usage.
479        - Built-in "ignore_event()" function: argument is now optional, like with
480          built-in function "ignore_controller()".
481        - Implemented built-in script function "change_velo()".
482        - Implemented built-in script function "change_note()".
483        - Adjusted behavior of "change_vol()" and "change_tune()" to a more
484          intuitive behavior if used in combination with "change_vol_time()" or
485          "change_tune_time()" respectively: now tuning/volume changes are only
486          assigned (without delay) immediately to a new note if the respective
487          timing function has not been called before, otherwise the volume/tuning
488          changes are automatically faded (before, only the event's time stamp was
489          relevant).
490         - Implemented built-in script function "array_equal()".
491         - Implemented built-in script function "search()".
492         - Implemented built-in script function "sort()".
493         - NKSP Fix: Never suspend "init" event handlers.
494         - Implemented built-in script function "same_region()" (currently only
495           available for gig format engine).
496         - Added built-in script constant "$NKSP_LINEAR".
497         - Added built-in script constant "$NKSP_EASE_IN_EASE_OUT".
498         - Implemented built-in script function "change_vol_curve()".
499         - Implemented built-in script function "change_tune_curve()".
500         - built-in "play_note()" function now supports a sample playback start
501           offset with argument 3, where special value -1 means to use the regular
502           sample offset as defined by the instrument file.
503         - Built-in array variable %KEY_DOWN[] is now a read-only variable.
504         - Built-in variable $EVENT_NOTE is now a read-only variable.
505         - Built-in variable $EVENT_VELOCITY is now a read-only variable.
506         - built-in "play_note()" function now accepts -2 for its fourth argument
507           (note duration) which means the life time of the note shall be sticked
508           to the requested note number of argument 1.
509         - Fix: built-in "play_note()" function now returns 0 as result value if
510           -1 was passed for its fourth argument (note duration) and the respective
511           parent note is already gone.
512        - Implemented built-in script function "change_play_pos()".
513        - NKSP language: Added support for user declared const array variables.
514        - NKSP language: Raise parser warning if array variable is accessed with
515          an index that exceeds the array's size.
516        - NKSP language fix: Unknown characters were not handled correctly.
517        - NKSP language: Added support for "synchronized .. end synchronized"
518          code blocks.
519        - Implemented built-in script function "abort()" which allows to abort
520          another script handler by passing its callback ID.
521        - Fixed potential memory access bug and potential undefined behavior of
522          "init" event handlers.
523        - Print a time stamp along to each call of built-in function "message()".
524        - ScriptVM API: Added VMParserContext::preprocessorComments() which allows
525          to retrieve all code blocks filtered out by the preprocessor.
526        - Added built-in script function "fork()".
527        - Added built-in array variable %NKSP_CALLBACK_CHILD_ID[].
528        - Added built-in variable $NKSP_CALLBACK_PARENT_ID.
529        - Fixed potential crash when accessing dynamic built-in array variables.
530        - Added built-in script function "callback_status()".
531        - Added built-in constant $CALLBACK_STATUS_TERMINATED.
532        - Added built-in constant $CALLBACK_STATUS_QUEUE.
533        - Added built-in constant $CALLBACK_STATUS_RUNNING.
534        - Removed max. value limitation of built-in functions "change_attack()",
535          "change_decay()" and "change_release()" to i.e. allow passing 2000000
536          for doubling the respective time.
537        - NKSP script editor syntax highlighting API: Fixed app termination due
538          to a lexer start condition stack underrun.
539        - NKSP preprocessor: Fixed wrong behavior on nested USE_CODE_IF() and
540          USE_CODE_IF_NOT() preprocessor statements.
541        - NKSP: Added built-in preprocessor condition NKSP_NO_MESSAGE, which
542          can be set to disable all subsequent built-in "message()" function calls
543          on preprocessor level.
544        - Implemented built-in script function "change_sustain()".
545        - NKSP script editor syntax highlighting API: catch all fatal lexer errors,
546          to avoid the editor app to crash on ill-formed text input.
547        - Added built-in script function "change_pan_time()".
548        - Added built-in script function "change_pan_curve()".
549        - Added built-in script function "change_cutoff_attack()".
550        - Added built-in script function "change_cutoff_decay()".
551        - Added built-in script function "change_cutoff_sustain()".
552        - Added built-in script function "change_cutoff_release()".
553        - Added built-in script function "change_cutoff_lfo_depth()".
554        - Added built-in script function "change_cutoff_lfo_freq()".
555    
556      * Instruments DB:
557        - Fixed memory access bug of general DB access code which lead to
558          undefined behavior.
559        - Cleanup of instruments DB file creation and opening code.
560        - The instrument DB path of linuxsampler's --create-instruments-db argument
561          is now optional, if it is missing, then a default location is used.
562        - Added support for scanning SFZ (.sfz) files.
563        - Added support for scanning Sound Font (.sf2) files.
564        - Fixed undefined DB transaction behavior.
565    
566    Version 2.0.0 (15 July 2015)
567    
568    * packaging changes:    * packaging changes:
569      - fixed building with newer MinGW-w64      - fixed building with newer MinGW-w64
# Line 103  Version CVS HEAD (?) Line 668  Version CVS HEAD (?)
668        polyphonic key pressure events (so far polyphonic pressure was not        polyphonic key pressure events (so far polyphonic pressure was not
669        supported at all, and channel pressure was rerouted as CC128 but not        supported at all, and channel pressure was rerouted as CC128 but not
670        used so far).        used so far).
671        - Added initial support for real-time instrument scripts. The script VM
672          code is shared by all sampler engine implemementations, however only the
673          gig file format currently provides support for storing instrument scripts
674          (as LinuxSampler extension to the original GigaStudio 4 format).
675    
676    * Gigasampler format engine:    * Gigasampler format engine:
677      - implemented the "round robin keyboard" dimension      - implemented the "round robin keyboard" dimension
# Line 122  Version CVS HEAD (?) Line 691  Version CVS HEAD (?)
691      - Fixed support for 'aftertouch' attenuation controller.      - Fixed support for 'aftertouch' attenuation controller.
692      - Fixed crash that happened with velocity split sounds under certain      - Fixed crash that happened with velocity split sounds under certain
693        conditions (see also previous commit on libgig).        conditions (see also previous commit on libgig).
694        - fixed behaviour of filter LFO
695    
696    * SFZ format engine:    * SFZ format engine:
697      - Initial implementation (not usable yet)      - Initial implementation (not usable yet)
# Line 286  Version CVS HEAD (?) Line 856  Version CVS HEAD (?)
856      - bugfix: generation of velocity curves etc should not be done      - bugfix: generation of velocity curves etc should not be done
857        after each "#include", only after the main file is parsed        after each "#include", only after the main file is parsed
858      - bugfix: line numbers in error messages were wrong after "#include"      - bugfix: line numbers in error messages were wrong after "#include"
859        - added support for float and 32 bit sample files
860    
861    * SoundFont format engine:    * SoundFont format engine:
862      - Initial implementation (not usable yet)      - Initial implementation (not usable yet)
# Line 333  Version CVS HEAD (?) Line 904  Version CVS HEAD (?)
904      - VST: implemented retrieval and switching of programs using the      - VST: implemented retrieval and switching of programs using the
905        sampler's internal MIDI instrument mapping system        sampler's internal MIDI instrument mapping system
906    
907      * Instrument editor interface:
908        - Changed instrument editor plugin interface, providing additional
909          informations like the EngineChannel for which the instrument editor was
910          spawned for. This allows the instrument editors to interact more actively
911          with the sampler.
912    
913    * MIDI driver:    * MIDI driver:
914      - ALSA MIDI driver supports now "NAME" device parameter, for overriding      - ALSA MIDI driver supports now "NAME" device parameter, for overriding
915        the ALSA sequencer client name        the ALSA sequencer client name
# Line 356  Version CVS HEAD (?) Line 933  Version CVS HEAD (?)
933      - MME bugfix: driver wasn't closed properly      - MME bugfix: driver wasn't closed properly
934      - CoreMIDI: automatically connect to all input sources by default (driver      - CoreMIDI: automatically connect to all input sources by default (driver
935        parameter "AUTO_BIND").        parameter "AUTO_BIND").
936        - CoreMIDI: fixed auto bind feature to CoreMIDI ports that go online
937        - CoreMIDI: fixed minor memory leak
938    
939    * audio driver:    * audio driver:
940      - ASIO driver fixes for newer gcc versions (fix from PortAudio)      - ASIO driver fixes for newer gcc versions (fix from PortAudio)
# Line 407  Version CVS HEAD (?) Line 986  Version CVS HEAD (?)
986        "SUBSCRIBE SEND_EFFECT_CHAIN_INFO"        "SUBSCRIBE SEND_EFFECT_CHAIN_INFO"
987      - provide comprehensive error messages on LSCP syntax errors      - provide comprehensive error messages on LSCP syntax errors
988        (suggesting expected next non-terminal symbols)        (suggesting expected next non-terminal symbols)
989        - Fixed client connection not being closed after network errors.
990    
991    * LSCP shell:    * LSCP shell:
992      - Added support for auto correction of obvious and trivial syntax mistakes.      - Added support for auto correction of obvious and trivial syntax mistakes.
# Line 422  Version CVS HEAD (?) Line 1002  Version CVS HEAD (?)
1002        as one specific LSCP command was detected while typing on the command        as one specific LSCP command was detected while typing on the command
1003        line.        line.
1004    
1005      * Real-time instrument scripts:
1006        - Implemented built-in script array variable %CC.
1007        - Implemented built-in script int variable $CC_NUM.
1008        - Implemented built-in script int variable $EVENT_NOTE.
1009        - Implemented built-in script int variable $EVENT_VELOCITY.
1010        - Implemented built-in script constant variable $VCC_MONO_AT.
1011        - Implemented built-in script constant variable $VCC_PITCH_BEND.
1012        - Implemented execution of script event handler "init".
1013        - Implemented execution of script event handler "controller".
1014        - Implemented execution of script event handler "note".
1015        - Implemented execution of script event handler "release".
1016        - Implemented built-in script function "play_note()" (only two of the
1017          max. four function arguments are currently implemented yet though).
1018        - Implemented built-in script int variable $EVENT_ID.
1019        - Implemented built-in script function "ignore_event()"
1020        - Implemented built-in script function "ignore_controller()" (may have one
1021          or no argument).
1022        - Implemented built-in script function "set_controller()".
1023        - Added extended script VM for the Gigasampler/GigaStudio format sampler
1024          engine, which extends the general instrument script VM with Giga format
1025          specific variables and functions.
1026        - Giga format scripts: added built-in script int constant variables
1027          $GIG_DIM_CHANNEL, $GIG_DIM_LAYER, $GIG_DIM_VELOCITY, $GIG_DIM_AFTERTOUCH,
1028          $GIG_DIM_RELEASE, $GIG_DIM_KEYBOARD, $GIG_DIM_ROUNDROBIN, $GIG_DIM_RANDOM,
1029          $GIG_DIM_SMARTMIDI, $GIG_DIM_ROUNDROBINKEY, $GIG_DIM_MODWHEEL,
1030          $GIG_DIM_BREATH, $GIG_DIM_FOOT, $GIG_DIM_PORTAMENTOTIME, $GIG_DIM_EFFECT1,
1031          $GIG_DIM_EFFECT2, $GIG_DIM_GENPURPOSE1, $GIG_DIM_GENPURPOSE2,
1032          $GIG_DIM_GENPURPOSE3, $GIG_DIM_GENPURPOSE4, $GIG_DIM_SUSTAIN,
1033          $GIG_DIM_PORTAMENTO, $GIG_DIM_SOSTENUTO, $GIG_DIM_SOFT,
1034          $GIG_DIM_GENPURPOSE5, $GIG_DIM_GENPURPOSE6, $GIG_DIM_GENPURPOSE7,
1035          $GIG_DIM_GENPURPOSE8, $GIG_DIM_EFFECT1DEPTH, $GIG_DIM_EFFECT2DEPTH,
1036          $GIG_DIM_EFFECT3DEPTH, $GIG_DIM_EFFECT4DEPTH, $GIG_DIM_EFFECT5DEPTH.
1037        - Giga format scripts: Implemented built-in script function
1038          "gig_set_dim_zone(event_id, dimension, zone)".
1039        - Implemented built-in script int array variable %KEY_DOWN.
1040        - Implemented built-in script function "abs()".
1041        - Implemented built-in script function "random()".
1042        - Implemented built-in script function "num_elements()".
1043        - Implemented built-in script function "note_off()".
1044        - Implemented built-in script function "set_event_mark()".
1045        - Implemented built-in script function "delete_event_mark()".
1046        - Implemented built-in script function "by_marks()".
1047        - Added built-in script int const variables $MARK_1 to $MARK_28.
1048        - Built-in script functions "ignore_event()", "note_off()" and
1049          "gig_set_dim_zone()" now also accept an array of event IDs as argument
1050          (i.e. return value of new script function "by_marks()").
1051        - Pass/preserve polyphonic variable data from respective "note" event
1052          handler to "release" event handler.
1053        - Fixed crash when using built-in script function "by_marks()".
1054    
1055    * Bug fixes:    * Bug fixes:
1056      - Fixed crash which may occur when MIDI key + transpose is out of range      - Fixed crash which may occur when MIDI key + transpose is out of range
1057      - minor valgrind fixes      - minor valgrind fixes
# Line 472  Version CVS HEAD (?) Line 1102  Version CVS HEAD (?)
1102        "GET SERVER INFOasdf\n" to be accepted as valid statement (was so far        "GET SERVER INFOasdf\n" to be accepted as valid statement (was so far
1103        practically irrelevant, however it caused problems with the new LSCP        practically irrelevant, however it caused problems with the new LSCP
1104        shell's auto completion feature).        shell's auto completion feature).
1105        - Fixed MIDI program change messages being ignored if quickly executed
1106          after each other (fixes #231).
1107    
1108  Version 1.0.0 (31 July 2009)  Version 1.0.0 (31 July 2009)
1109    

Legend:
Removed from v.2568  
changed lines
  Added in v.3686

  ViewVC Help
Powered by ViewVC