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