1 |
Version SVN trunk (?) |
Version SVN trunk (?) |
2 |
|
|
3 |
|
* GigaStudio/Gigasampler format engine: |
4 |
|
- Use libgig's new IO-per-thread feature to avoid file I/O concurrency |
5 |
|
issues with .gig file. |
6 |
|
|
7 |
|
Version 2.2.0 (9 May 2021) |
8 |
|
|
9 |
* general changes: |
* general changes: |
10 |
- Fixed compiler error in Pool.h. |
- Fixed compiler error in Pool.h. |
11 |
- Require C++14 compiler support. |
- Require C++14 compiler support. |
16 |
- RTMath: Implemented floating point comparison methods |
- RTMath: Implemented floating point comparison methods |
17 |
fEqual32(float,float) and fEqual64(double,double) which take the |
fEqual32(float,float) and fEqual64(double,double) which take the |
18 |
expected floating point tolerances into account. |
expected floating point tolerances into account. |
19 |
|
- Added public API C++ class "LFO", which is a cluster class encapsulating |
20 |
|
all the sampler's LFO implementations to be used by 3rd party applications |
21 |
|
(e.g. by Gigedit). |
22 |
|
- Added int math square LFO implementation. |
23 |
|
- Added int math saw LFO implementation. |
24 |
|
- Added numeric complex nr sine LFO implementation. |
25 |
|
- Marked class LFOTriangleDiHarmonic as deprecated |
26 |
|
(will be removed in future). |
27 |
|
- Added LFOAll.h which includes all LFO implementation's header files. |
28 |
|
- Refactored LFO class names and their file names (PulseLFO -> LFOPulse, |
29 |
|
LFOSawIntMath -> LFOSawIntMathNew, SawLFO -> LFOSawIntMathOld, |
30 |
|
SineLFO -> LFOSineBuiltinFn, LFOSine -> LFOSineNumericComplexNr, |
31 |
|
SquareLFO -> LFOSquarePulse and separated the latter to its own header |
32 |
|
file). |
33 |
|
- Renamed type LFOSigned -> LFOTriangleSigned. |
34 |
|
- Renamed type LFOUnsigned -> LFOTriangleUnsigned. |
35 |
|
- Using now cubic interpolation as resampling algorithm by default; and |
36 |
|
linear interpolation is deprecated now. |
37 |
|
- Event:Init(): memset() entire Event::Param union to zero instead of trying |
38 |
|
to do that for its individual members; the latter became error prone due |
39 |
|
to the union's growing complexity meanwhile. |
40 |
|
- EngineChannel: Overhaul of RPN/NRPN related methods: Added new |
41 |
|
*Rpn*Parameter*() methods as replacement for previous *Rpn*Controller*() |
42 |
|
methods and marked the old ones as deprecated; and likewise added new |
43 |
|
*Nrpn*Parameter*() methods as replacement for previous *Nrpn*Controller*() |
44 |
|
methods and marked those old ones deprecated as well. |
45 |
|
- Added support for MIDI CC #38 (data entry LSB): this allows higher value |
46 |
|
resolution for certain (e.g. hard coded) RPN and NRPN parameters. |
47 |
|
- Implemented support for compressed RPN/NRPN message sequences (that is to |
48 |
|
allow processing MIDI data entry messages without always having to be |
49 |
|
preceded strictly by RPN/NRPN parameter selection messages on each value |
50 |
|
change). |
51 |
|
- Added support for MIDI CC #96 (data increment) and MIDI CC #97 (data |
52 |
|
decrement). |
53 |
|
- Added support for 'null function RPN/NRPN' (which is RPN/NRPN parameter |
54 |
|
MSB=127 and LSB=127) and which is disabling subsequent data |
55 |
|
entry/increment/decrement CC messages. |
56 |
|
- Fixed crash when editing key groups (a.k.a. exclusive groups) with an |
57 |
|
instrument editor. |
58 |
|
- Fixed playing noise at the end of a disk stream under certain conditions. |
59 |
|
- Fixed potential crash with high pitch at end of RAM playback. |
60 |
|
- Added configure checks whether C++ compiler supports so called |
61 |
|
'designated initializers'. |
62 |
|
- Added global backtraceAsString() function for debugging purposes |
63 |
|
(POSIX systems only, no Windows implementation yet). |
64 |
|
- Thread class: Added new methods pushCancelable(), popCancelable(), name(), |
65 |
|
nameOfCaller() and setNameOfCaller(). |
66 |
|
- configure: Always check for availability of pthread_testcancel() and use |
67 |
|
it if so (previously it was only used if explicitly enabled by configure |
68 |
|
option). |
69 |
|
- Thread class: raise compiler warning if pthread_testcancel() is not |
70 |
|
available, because it can lead to deadlocks. |
71 |
|
- Mutex class: Implemented optional bug detection and deadlock debugging |
72 |
|
features. |
73 |
|
- Ref<> class is now thread safe (as lock-free and wait-free |
74 |
|
implementation). |
75 |
|
- Fixed compilation error with Bison >= 3.6.0. |
76 |
|
- Fixed rare crash when switching between instruments that had instrument |
77 |
|
scripts loaded. |
78 |
|
- Allow EffectChain::InsertEffect() as alternative to |
79 |
|
EffectChain::AppendEffect() (i.e. with index equal to current chain size). |
80 |
|
- ConstCapacityArray class: Fixed bug in remove() method. |
81 |
|
- Fixed crash on certain MIDI RPN and NRPN messages that occurred if no |
82 |
|
real-time instrument script was loaded. |
83 |
|
|
84 |
* Real-time instrument scripts: |
* Real-time instrument scripts: |
85 |
- Added method ScriptVM::setExitResultEnabled() which allows to |
- Added method ScriptVM::setExitResultEnabled() which allows to |
208 |
- NKSP parser: if wrong argument type was passed to a built-in function and |
- NKSP parser: if wrong argument type was passed to a built-in function and |
209 |
that built-in function accepts more than one data type for the argument, |
that built-in function accepts more than one data type for the argument, |
210 |
then show all supported data types as parser error message. |
then show all supported data types as parser error message. |
211 |
|
- Built-in function "play_note()" accepts now real numbers and seconds as |
212 |
|
unit type as well for its 3rd and 4th function arguments. |
213 |
|
- The following built-in functions accept now real numbers as well for their |
214 |
|
2nd function argument: "change_vol()", "change_tune()", "change_cutoff()", |
215 |
|
"change_attack()", "change_decay()", "change_release()", |
216 |
|
"change_sustain()", "change_cutoff_attack()", "change_cutoff_decay()", |
217 |
|
"change_cutoff_sustain()", "change_cutoff_release()", |
218 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
219 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", |
220 |
|
"change_pan_time()", "fade_in()", "fade_out()", "change_play_pos()". |
221 |
|
- Fixed built-in function "change_play_pos()" not having accepted metric |
222 |
|
prefixes at all. |
223 |
|
- Fixed the following built-in functions having misinterpreted values given |
224 |
|
with unit type (for their 2nd argument) as if they were relative values |
225 |
|
(that is as if they were passed without a unit type): "change_attack()", |
226 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
227 |
|
"change_cutoff_decay()", "change_cutoff_release()". |
228 |
|
- Fixed the following built-in functions having applied completely wrong |
229 |
|
'final' values: "change_sustain()", "change_cutoff_sustain()" (since the |
230 |
|
respective EGs being their modulation sink assume uint data type with |
231 |
|
value range 0..1000 instead of 0.0..1.0. |
232 |
|
- Added individual parse-time checks of function arguments for the following |
233 |
|
built-in functions: "play_note()", "note_off()", "set_event_mark()", |
234 |
|
"delete_event_mark()", "by_marks()", "change_cutoff()", "change_attack()", |
235 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
236 |
|
"change_cutoff_decay()", "change_cutoff_release()", |
237 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
238 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()" and |
239 |
|
"change_pan_time()". |
240 |
|
- Don't abort function call if unit type was used and at the same time |
241 |
|
'final' operator was omitted for the primary value argument of the |
242 |
|
following built-in functions: "change_cutoff()", "change_attack()", |
243 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
244 |
|
"change_cutoff_decay()", "change_cutoff_release()", |
245 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
246 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", |
247 |
|
"change_pan_time()", instead imply 'final'ness at runtime and raise an |
248 |
|
appropriate parser warning at parse time. |
249 |
|
- Added built-in real number functions "round()", "ceil()", "floor()", |
250 |
|
"sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()", |
251 |
|
"cos()", "tan()", "asin()", "acos()", "atan()". |
252 |
|
- Added built-in script real number constant "~NI_MATH_PI". |
253 |
|
- Added built-in script real number constant "~NI_MATH_E". |
254 |
|
- NKSP language: Allow unary '+' operator. |
255 |
|
- Added built-in script functions "msb()" and "lsb()". |
256 |
|
- NKSP language: Added support for RPN event handler |
257 |
|
("on rpn ... end on" in instrument scripts). |
258 |
|
- NKSP language: Added support for NRPN event handler |
259 |
|
("on nrpn ... end on" in instrument scripts). |
260 |
|
- Added built-in read-only variables "$RPN_ADDRESS" and "$RPN_VALUE" which |
261 |
|
may be read from the new RPN/NRPN script handlers to get the (N)RPN |
262 |
|
parameter that had been changed and its new value. |
263 |
|
- Added built-in const variables "$NI_CB_TYPE_RPN" and "$NI_CB_TYPE_NRPN" |
264 |
|
which are identifying the new (N)RPN handlers as such at script runtime. |
265 |
|
- Implemented built-in script function "set_rpn()". |
266 |
|
- Implemented built-in script function "set_nrpn()". |
267 |
|
- Fix: built-in functions returning an array type were broken and caused a |
268 |
|
crash when the built-in function's (supposed to be array) result value was |
269 |
|
used by the script VM. |
270 |
|
- Removed upper value constraint for 2nd argument of built-in functions |
271 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
272 |
|
"change_pitch_lfo_freq()","change_reso()", "change_cutoff()", |
273 |
|
"change_amp_lfo_depth()", "change_cutoff_lfo_depth()" and |
274 |
|
"change_pitch_lfo_depth()", to allow e.g. passing value 2000000 to double |
275 |
|
the LFO frequency / resonance / cutoff frequency. |
276 |
|
- Reduced code involved for parsing NKSP variable declarations by using 2 |
277 |
|
generalized grammar rules with optional components (i.e. optional value |
278 |
|
assignment and optional variable qualifiers) instead of previous linear |
279 |
|
combinations of grammar rules, which also fixes some edge case. |
280 |
|
- NKSP language parser: track code block locations also by a) raw byte |
281 |
|
position in NKSP source code string and b) length of that code block in |
282 |
|
bytes (along to the already existing code block tracking by line/column); |
283 |
|
and added appropriate new members to public C++ API classes like |
284 |
|
'firstByte' and 'lengthBytes' to class VMSourceToken and struct CodeBlock. |
285 |
|
- NKSP language: Added support for 'patch' variable qualifier (capture their |
286 |
|
locations and allow replacement of their assignment expression via VM C++ |
287 |
|
API). |
288 |
|
- Fixed incorrect EG times if standard measuring unit was passed to built-in |
289 |
|
functions "change_attack()", "change_decay()" or "change_release()". |
290 |
|
- Fixed intermediate function result values never having reflected any |
291 |
|
standard measuring unit type. |
292 |
|
- Fixed re-entrant issue with function calls which caused wrong result |
293 |
|
values if the same function was called multiple times in a term |
294 |
|
(specifically if metric prefixes were used). |
295 |
|
- NKSP language: Just throw a warning, not an error if an array variable of |
296 |
|
size zero was declared. |
297 |
|
- NKSP language: Allow omitting explicit array size on array variable |
298 |
|
declaration if combined with immediate value assignment |
299 |
|
(e.g. declare %foo[] := ( 1, 2, 3 ) ). |
300 |
|
- NKSP language: emit warning if an array variable was declared with bigger |
301 |
|
array size than amount of initial values been assigned, and initialize the |
302 |
|
missing array elements with zero in this case. |
303 |
|
- Fixed built-in NKSP exit() function to behave as return statement. |
304 |
|
- NKSP parser: Fixed crash if unary '-' operator was used on a non-number |
305 |
|
data type. |
306 |
|
- NKSP VM: Fixed the "release" handler being executed too often under |
307 |
|
certain situations if polyphonic data was passed from "note" handler to |
308 |
|
"release" handler. |
309 |
|
- Fixed memory leak in NKSP parser: string tokens were allocated as C |
310 |
|
strings and never freed. |
311 |
|
- Fixed incorrect polyphonic data transfer from wrong note handler to |
312 |
|
release handler; which also fixes no release handler being executed |
313 |
|
sometimes, and due to the latter it also fixes potential crashes as some |
314 |
|
polyphonic script events were never released and the engine hence was |
315 |
|
running out of free script events. |
316 |
|
- Fixed crash when handling array results of built-in functions |
317 |
|
(e.g. "num_elements(by_marks($MARK_1)"). |
318 |
|
- NKSP VM: Fixed dead note events not been removed from user's event groups |
319 |
|
(i.e. causing incorrect behaviour of built-in NKSP functions by_marks() |
320 |
|
and set_event_mark() after max. size of event group list was exhausted). |
321 |
|
|
322 |
* test cases: |
* test cases: |
323 |
- Fixed compiler errors in test cases. |
- Fixed compiler errors in test cases. |
336 |
'final' operator usage cases. |
'final' operator usage cases. |
337 |
- Added NKSP test cases for (floating point tolerance aware) real number |
- Added NKSP test cases for (floating point tolerance aware) real number |
338 |
equalness / unequalness comparison. |
equalness / unequalness comparison. |
339 |
|
- Added NKSP int array and real array tests for value assignment and |
340 |
|
initialization of arrays. |
341 |
|
- Added NKSP test cases for built-in functions "round()", "ceil()", |
342 |
|
"floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", |
343 |
|
"sin()", "cos()", "tan()", "asin()", "acos()", "atan()". |
344 |
|
- Added NKSP test cases for unary '+' operator. |
345 |
|
- Added NKSP test cases for core built-in variables. |
346 |
|
- Added thorough NKSP test cases for variable declarations. |
347 |
|
|
348 |
|
* GigaStudio/Gigasampler format engine: |
349 |
|
- LFOTriangleIntMath and LFOTriangleIntAbsMath: Fixed FlipPhase=true |
350 |
|
behaviour for start_level_mid. |
351 |
|
- Changed LFO start levels: LFO1 and LFO2 both to mid, LFO3 to max. start |
352 |
|
level (see discussion "GigaStudio LFO compatibility" on mailing list |
353 |
|
from 2019-09-26 for details). |
354 |
|
- Changed default wave form for all 3 LFOs to sine (instead of triangle; |
355 |
|
see discussion "GigaStudio LFO compatibility" on mailing list from |
356 |
|
2019-09-26 for details). |
357 |
|
- Format extension: Added support for different LFO wave forms (currently |
358 |
|
either sine [default], triangle, saw or square). |
359 |
|
- Format extension: Added support for LFO phase displacement (0°..360°). |
360 |
|
- Format extension: Added support for flipping LFO polarity on LFO 3 |
361 |
|
(in the original gig format this was only available for LFO 1 and LFO 2). |
362 |
|
- Format extension: Support for additional filter types: |
363 |
|
lowpass 1/2/4/6-pole, highpass 1/2/4/6-pole, bandpass 2-pole, |
364 |
|
bandreject 2-pole. |
365 |
|
- Fixd potential crash with polynomial interpolator and max. pitch. |
366 |
|
- If minimum cutoff is defined, remap cutoff controller CC values to really |
367 |
|
span the entire possible cutoff range (and avoiding a dead controller |
368 |
|
zone). |
369 |
|
- Implemented support for loading instrument scripts with 'patch' variables |
370 |
|
(by patching these script variables with potentially overridden ones by |
371 |
|
gig Instrument). |
372 |
|
|
373 |
|
* SFZ format engine: |
374 |
|
- Fixed support for regions with loccN/hiccN conditions on more than one |
375 |
|
MIDI controller. |
376 |
|
- Fixed internal opcode 'xfin_hivel' falsely being set by user opcode |
377 |
|
'xfin_lovel' (patch by Christian Czezatke). |
378 |
|
|
379 |
|
* Benchmarks: |
380 |
|
- Fixed benchmarks/triang.cpp falsely having favoured "int math abs" |
381 |
|
algorithm (since result of 2nd run was not accumulated). |
382 |
|
- Added benchmark for saw wave (benchmarks/saw.cpp). |
383 |
|
- Added benchmark for sine wave (benchmarks/sine.cpp). |
384 |
|
- Added benchmark for square wave (benchmarks/square.cpp). |
385 |
|
- Increased amount of benchmarks runs by factor 6 to achieve benchmark times |
386 |
|
which are large enough on modern systems. |
387 |
|
|
388 |
Version 2.1.1 (27 Jul 2019) |
Version 2.1.1 (27 Jul 2019) |
389 |
|
|