10 |
- RTMath: Implemented floating point comparison methods |
- RTMath: Implemented floating point comparison methods |
11 |
fEqual32(float,float) and fEqual64(double,double) which take the |
fEqual32(float,float) and fEqual64(double,double) which take the |
12 |
expected floating point tolerances into account. |
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 |
|
- EngineChannel: Overhaul of RPN/NRPN related methods: Added new |
35 |
|
*Rpn*Parameter*() methods as replacement for previous *Rpn*Controller*() |
36 |
|
methods and marked the old ones as deprecated; and likewise added new |
37 |
|
*Nrpn*Parameter*() methods as replacement for previous *Nrpn*Controller*() |
38 |
|
methods and marked those old ones deprecated as well. |
39 |
|
- Added support for MIDI CC #38 (data entry LSB): this allows higher value |
40 |
|
resolution for certain (e.g. hard coded) RPN and NRPN parameters. |
41 |
|
- Implemented support for compressed RPN/NRPN message sequences (that is to |
42 |
|
allow processing MIDI data entry messages without always having to be |
43 |
|
preceded strictly by RPN/NRPN parameter selection messages on each value |
44 |
|
change). |
45 |
|
- Added support for MIDI CC #96 (data increment) and MIDI CC #97 (data |
46 |
|
decrement). |
47 |
|
- Added support for 'null function RPN/NRPN' (which is RPN/NRPN parameter |
48 |
|
MSB=127 and LSB=127) and which is disabling subsequent data |
49 |
|
entry/increment/decrement CC messages. |
50 |
|
- Fixed crash when editing key groups (a.k.a. exclusive groups) with an |
51 |
|
instrument editor. |
52 |
|
- Fixed playing noise at the end of a disk stream under certain conditions. |
53 |
|
- Fixed potential crash with high pitch at end of RAM playback. |
54 |
|
- Added configure checks whether C++ compiler supports so called |
55 |
|
'designated initializers'. |
56 |
|
- Added global backtraceAsString() function for debugging purposes |
57 |
|
(POSIX systems only, no Windows implementation yet). |
58 |
|
- Thread class: Added new methods pushCancelable(), popCancelable(), name(), |
59 |
|
nameOfCaller() and setNameOfCaller(). |
60 |
|
- configure: Always check for availability of pthread_testcancel() and use |
61 |
|
it if so (previously it was only used if explicitly enabled by configure |
62 |
|
option). |
63 |
|
- Thread class: raise compiler warning if pthread_testcancel() is not |
64 |
|
available, because it can lead to deadlocks. |
65 |
|
- Mutex class: Implemented optional bug detection and deadlock debugging |
66 |
|
features. |
67 |
|
- Ref<> class is now thread safe (as lock-free and wait-free |
68 |
|
implementation). |
69 |
|
- Fixed compilation error with Bison >= 3.6.0. |
70 |
|
- Fixed rare crash when switching between instruments that had instrument |
71 |
|
scripts loaded. |
72 |
|
- Allow EffectChain::InsertEffect() as alternative to |
73 |
|
EffectChain::AppendEffect() (i.e. with index equal to current chain size). |
74 |
|
|
75 |
* Real-time instrument scripts: |
* Real-time instrument scripts: |
76 |
- Added method ScriptVM::setExitResultEnabled() which allows to |
- Added method ScriptVM::setExitResultEnabled() which allows to |
179 |
- Added individual parse time checks of arguments to be passed to built-in |
- Added individual parse time checks of arguments to be passed to built-in |
180 |
functions "random()", "inc()", "dec()", "in_range()", "min()", "max()", |
functions "random()", "inc()", "dec()", "in_range()", "min()", "max()", |
181 |
"array_equal()" and "search()" specific for their individual purposes. |
"array_equal()" and "search()" specific for their individual purposes. |
182 |
|
- NKSP VM refactoring: Renamed all methods, functions and classes matching |
183 |
|
pattern *ScalarNumber* to simply *Number* (that is i.e. classes |
184 |
|
VMScalarNumberExpr -> VMNumberExpr, ScalarNumberExpr -> NumberExpr, |
185 |
|
ScalarNumberVariable -> NumberVariable, ScalarNumberBinaryOp -> |
186 |
|
NumberBinaryOp, VMScalarNumberResultFunction -> VMNumberResultFunction, |
187 |
|
method VMExpr::asScalarNumberExpr() -> VMExpr::asNumber(), function |
188 |
|
isScalarNumber() -> isNumber()). |
189 |
|
- NKSP VM API: Added 4 overridden methods to class VMNumberExpr: |
190 |
|
evalCastInt(MetricPrefix_t), evalCastInt(MetricPrefix_t,MetricPrefix_t), |
191 |
|
evalCastReal(MetricPrefix_t), evalCastReal(MetricPrefix_t,MetricPrefix_t) |
192 |
|
as convenient methods for automatically converting values to expected |
193 |
|
metric value basis. |
194 |
|
- Built-in function "wait()" accepts now both integers and real numbers as |
195 |
|
argument. |
196 |
|
- NKSP VM API cleanup: Get rid of legacy method |
197 |
|
VMFunction::argType(vmint iArg) which was already superseded by its new |
198 |
|
replacement VMFunction::acceptsArgType(vmint iArg, ExprType_t type). |
199 |
|
- NKSP parser: if wrong argument type was passed to a built-in function and |
200 |
|
that built-in function accepts more than one data type for the argument, |
201 |
|
then show all supported data types as parser error message. |
202 |
|
- Built-in function "play_note()" accepts now real numbers and seconds as |
203 |
|
unit type as well for its 3rd and 4th function arguments. |
204 |
|
- The following built-in functions accept now real numbers as well for their |
205 |
|
2nd function argument: "change_vol()", "change_tune()", "change_cutoff()", |
206 |
|
"change_attack()", "change_decay()", "change_release()", |
207 |
|
"change_sustain()", "change_cutoff_attack()", "change_cutoff_decay()", |
208 |
|
"change_cutoff_sustain()", "change_cutoff_release()", |
209 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
210 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", |
211 |
|
"change_pan_time()", "fade_in()", "fade_out()", "change_play_pos()". |
212 |
|
- Fixed built-in function "change_play_pos()" not having accepted metric |
213 |
|
prefixes at all. |
214 |
|
- Fixed the following built-in functions having misinterpreted values given |
215 |
|
with unit type (for their 2nd argument) as if they were relative values |
216 |
|
(that is as if they were passed without a unit type): "change_attack()", |
217 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
218 |
|
"change_cutoff_decay()", "change_cutoff_release()". |
219 |
|
- Fixed the following built-in functions having applied completely wrong |
220 |
|
'final' values: "change_sustain()", "change_cutoff_sustain()" (since the |
221 |
|
respective EGs being their modulation sink assume uint data type with |
222 |
|
value range 0..1000 instead of 0.0..1.0. |
223 |
|
- Added individual parse-time checks of function arguments for the following |
224 |
|
built-in functions: "play_note()", "note_off()", "set_event_mark()", |
225 |
|
"delete_event_mark()", "by_marks()", "change_cutoff()", "change_attack()", |
226 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
227 |
|
"change_cutoff_decay()", "change_cutoff_release()", |
228 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
229 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()" and |
230 |
|
"change_pan_time()". |
231 |
|
- Don't abort function call if unit type was used and at the same time |
232 |
|
'final' operator was omitted for the primary value argument of the |
233 |
|
following built-in functions: "change_cutoff()", "change_attack()", |
234 |
|
"change_decay()", "change_release()", "change_cutoff_attack()", |
235 |
|
"change_cutoff_decay()", "change_cutoff_release()", |
236 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
237 |
|
"change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", |
238 |
|
"change_pan_time()", instead imply 'final'ness at runtime and raise an |
239 |
|
appropriate parser warning at parse time. |
240 |
|
- Added built-in real number functions "round()", "ceil()", "floor()", |
241 |
|
"sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()", |
242 |
|
"cos()", "tan()", "asin()", "acos()", "atan()". |
243 |
|
- Added built-in script real number constant "~NI_MATH_PI". |
244 |
|
- Added built-in script real number constant "~NI_MATH_E". |
245 |
|
- NKSP language: Allow unary '+' operator. |
246 |
|
- Added built-in script functions "msb()" and "lsb()". |
247 |
|
- NKSP language: Added support for RPN event handler |
248 |
|
("on rpn ... end on" in instrument scripts). |
249 |
|
- NKSP language: Added support for NRPN event handler |
250 |
|
("on nrpn ... end on" in instrument scripts). |
251 |
|
- Added built-in read-only variables "$RPN_ADDRESS" and "$RPN_VALUE" which |
252 |
|
may be read from the new RPN/NRPN script handlers to get the (N)RPN |
253 |
|
parameter that had been changed and its new value. |
254 |
|
- Added built-in const variables "$NI_CB_TYPE_RPN" and "$NI_CB_TYPE_NRPN" |
255 |
|
which are identifying the new (N)RPN handlers as such at script runtime. |
256 |
|
- Implemented built-in script function "set_rpn()". |
257 |
|
- Implemented built-in script function "set_nrpn()". |
258 |
|
- Fix: built-in functions returning an array type were broken and caused a |
259 |
|
crash when the built-in function's (supposed to be array) result value was |
260 |
|
used by the script VM. |
261 |
|
- Removed upper value constraint for 2nd argument of built-in functions |
262 |
|
"change_amp_lfo_freq()", "change_cutoff_lfo_freq()", |
263 |
|
"change_pitch_lfo_freq()","change_reso()", "change_cutoff()", |
264 |
|
"change_amp_lfo_depth()", "change_cutoff_lfo_depth()" and |
265 |
|
"change_pitch_lfo_depth()", to allow e.g. passing value 2000000 to double |
266 |
|
the LFO frequency / resonance / cutoff frequency. |
267 |
|
- Reduced code involved for parsing NKSP variable declarations by using 2 |
268 |
|
generalized grammar rules with optional components (i.e. optional value |
269 |
|
assignment and optional variable qualifiers) instead of previous linear |
270 |
|
combinations of grammar rules, which also fixes some edge case. |
271 |
|
- NKSP language parser: track code block locations also by a) raw byte |
272 |
|
position in NKSP source code string and b) length of that code block in |
273 |
|
bytes (along to the already existing code block tracking by line/column); |
274 |
|
and added appropriate new members to public C++ API classes like |
275 |
|
'firstByte' and 'lengthBytes' to class VMSourceToken and struct CodeBlock. |
276 |
|
- NKSP language: Added support for 'patch' variable qualifier (capture their |
277 |
|
locations and allow replacement of their assignment expression via VM C++ |
278 |
|
API). |
279 |
|
- Fixed incorrect EG times if standard measuring unit was passed to built-in |
280 |
|
functions "change_attack()", "change_decay()" or "change_release()". |
281 |
|
- Fixed intermediate function result values never having reflected any |
282 |
|
standard measuring unit type. |
283 |
|
- Fixed re-entrant issue with function calls which caused wrong result |
284 |
|
values if the same function was called multiple times in a term |
285 |
|
(specifically if metric prefixes were used). |
286 |
|
- NKSP language: Just throw a warning, not an error if an array variable of |
287 |
|
size zero was declared. |
288 |
|
- NKSP language: Allow omitting explicit array size on array variable |
289 |
|
declaration if combined with immediate value assignment |
290 |
|
(e.g. declare %foo[] := ( 1, 2, 3 ) ). |
291 |
|
- NKSP language: emit warning if an array variable was declared with bigger |
292 |
|
array size than amount of initial values been assigned, and initialize the |
293 |
|
missing array elements with zero in this case. |
294 |
|
- Fixed built-in NKSP exit() function to behave as return statement. |
295 |
|
- NKSP parser: Fixed crash if unary '-' operator was used on a non-number |
296 |
|
data type. |
297 |
|
- NKSP VM: Fixed the "release" handler being executed too often under |
298 |
|
certain situations if polyphonic data was passed from "note" handler to |
299 |
|
"release" handler. |
300 |
|
- Fixed memory leak in NKSP parser: string tokens were allocated as C |
301 |
|
strings and never freed. |
302 |
|
- Fixed incorrect polyphonic data transfer from wrong note handler to |
303 |
|
release handler; which also fixes no release handler being executed |
304 |
|
sometimes, and due to the latter it also fixes potential crashes as some |
305 |
|
polyphonic script events were never released and the engine hence was |
306 |
|
running out of free script events. |
307 |
|
|
308 |
* test cases: |
* test cases: |
309 |
- Fixed compiler errors in test cases. |
- Fixed compiler errors in test cases. |
322 |
'final' operator usage cases. |
'final' operator usage cases. |
323 |
- Added NKSP test cases for (floating point tolerance aware) real number |
- Added NKSP test cases for (floating point tolerance aware) real number |
324 |
equalness / unequalness comparison. |
equalness / unequalness comparison. |
325 |
|
- Added NKSP int array and real array tests for value assignment and |
326 |
|
initialization of arrays. |
327 |
|
- Added NKSP test cases for built-in functions "round()", "ceil()", |
328 |
|
"floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", |
329 |
|
"sin()", "cos()", "tan()", "asin()", "acos()", "atan()". |
330 |
|
- Added NKSP test cases for unary '+' operator. |
331 |
|
- Added NKSP test cases for core built-in variables. |
332 |
|
- Added thorough NKSP test cases for variable declarations. |
333 |
|
|
334 |
|
* GigaStudio/Gigasampler format engine: |
335 |
|
- LFOTriangleIntMath and LFOTriangleIntAbsMath: Fixed FlipPhase=true |
336 |
|
behaviour for start_level_mid. |
337 |
|
- Changed LFO start levels: LFO1 and LFO2 both to mid, LFO3 to max. start |
338 |
|
level (see discussion "GigaStudio LFO compatibility" on mailing list |
339 |
|
from 2019-09-26 for details). |
340 |
|
- Changed default wave form for all 3 LFOs to sine (instead of triangle; |
341 |
|
see discussion "GigaStudio LFO compatibility" on mailing list from |
342 |
|
2019-09-26 for details). |
343 |
|
- Format extension: Added support for different LFO wave forms (currently |
344 |
|
either sine [default], triangle, saw or square). |
345 |
|
- Format extension: Added support for LFO phase displacement (0°..360°). |
346 |
|
- Format extension: Added support for flipping LFO polarity on LFO 3 |
347 |
|
(in the original gig format this was only available for LFO 1 and LFO 2). |
348 |
|
- Format extension: Support for additional filter types: |
349 |
|
lowpass 1/2/4/6-pole, highpass 1/2/4/6-pole, bandpass 2-pole, |
350 |
|
bandreject 2-pole. |
351 |
|
- Fixd potential crash with polynomial interpolator and max. pitch. |
352 |
|
- If minimum cutoff is defined, remap cutoff controller CC values to really |
353 |
|
span the entire possible cutoff range (and avoiding a dead controller |
354 |
|
zone). |
355 |
|
- Implemented support for loading instrument scripts with 'patch' variables |
356 |
|
(by patching these script variables with potentially overridden ones by |
357 |
|
gig Instrument). |
358 |
|
|
359 |
|
* SFZ format engine: |
360 |
|
- Fixed support for regions with loccN/hiccN conditions on more than one |
361 |
|
MIDI controller. |
362 |
|
- Fixed internal opcode 'xfin_hivel' falsely being set by user opcode |
363 |
|
'xfin_lovel' (patch by Christian Czezatke). |
364 |
|
|
365 |
|
* Benchmarks: |
366 |
|
- Fixed benchmarks/triang.cpp falsely having favoured "int math abs" |
367 |
|
algorithm (since result of 2nd run was not accumulated). |
368 |
|
- Added benchmark for saw wave (benchmarks/saw.cpp). |
369 |
|
- Added benchmark for sine wave (benchmarks/sine.cpp). |
370 |
|
- Added benchmark for square wave (benchmarks/square.cpp). |
371 |
|
- Increased amount of benchmarks runs by factor 6 to achieve benchmark times |
372 |
|
which are large enough on modern systems. |
373 |
|
|
374 |
Version 2.1.1 (27 Jul 2019) |
Version 2.1.1 (27 Jul 2019) |
375 |
|
|