--- linuxsampler/trunk/ChangeLog 2019/08/30 12:23:40 3582 +++ linuxsampler/trunk/ChangeLog 2020/01/03 10:18:21 3690 @@ -10,6 +10,34 @@ - RTMath: Implemented floating point comparison methods fEqual32(float,float) and fEqual64(double,double) which take the expected floating point tolerances into account. + - Added public API C++ class "LFO", which is a cluster class encapsulating + all the sampler's LFO implementations to be used by 3rd party applications + (e.g. by Gigedit). + - Added int math square LFO implementation. + - Added int math saw LFO implementation. + - Added numeric complex nr sine LFO implementation. + - Marked class LFOTriangleDiHarmonic as deprecated + (will be removed in future). + - Added LFOAll.h which includes all LFO implementation's header files. + - Refactored LFO class names and their file names (PulseLFO -> LFOPulse, + LFOSawIntMath -> LFOSawIntMathNew, SawLFO -> LFOSawIntMathOld, + SineLFO -> LFOSineBuiltinFn, LFOSine -> LFOSineNumericComplexNr, + SquareLFO -> LFOSquarePulse and separated the latter to its own header + file). + - Renamed type LFOSigned -> LFOTriangleSigned. + - Renamed type LFOUnsigned -> LFOTriangleUnsigned. + - Using now cubic interpolation as resampling algorithm by default; and + linear interpolation is deprecated now. + - Event:Init(): memset() entire Event::Param union to zero instead of trying + to do that for its individual members; the latter became error prone due + to the union's growing complexity meanwhile. + - EngineChannel: Overhaul of RPN/NRPN related methods: Added new + *Rpn*Parameter*() methods as replacement for previous *Rpn*Controller*() + methods and marked the old ones as deprecated; and likewise added new + *Nrpn*Parameter*() methods as replacement for previous *Nrpn*Controller*() + methods and marked those old ones deprecated as well. + - Added support for MIDI CC #38 (data entry LSB): this allows higher value + resolution for certain (e.g. hard coded) RPN and NRPN parameters. * Real-time instrument scripts: - Added method ScriptVM::setExitResultEnabled() which allows to @@ -125,6 +153,73 @@ NumberBinaryOp, VMScalarNumberResultFunction -> VMNumberResultFunction, method VMExpr::asScalarNumberExpr() -> VMExpr::asNumber(), function isScalarNumber() -> isNumber()). + - NKSP VM API: Added 4 overridden methods to class VMNumberExpr: + evalCastInt(MetricPrefix_t), evalCastInt(MetricPrefix_t,MetricPrefix_t), + evalCastReal(MetricPrefix_t), evalCastReal(MetricPrefix_t,MetricPrefix_t) + as convenient methods for automatically converting values to expected + metric value basis. + - Built-in function "wait()" accepts now both integers and real numbers as + argument. + - NKSP VM API cleanup: Get rid of legacy method + VMFunction::argType(vmint iArg) which was already superseded by its new + replacement VMFunction::acceptsArgType(vmint iArg, ExprType_t type). + - NKSP parser: if wrong argument type was passed to a built-in function and + that built-in function accepts more than one data type for the argument, + then show all supported data types as parser error message. + - Built-in function "play_note()" accepts now real numbers and seconds as + unit type as well for its 3rd and 4th function arguments. + - The following built-in functions accept now real numbers as well for their + 2nd function argument: "change_vol()", "change_tune()", "change_cutoff()", + "change_attack()", "change_decay()", "change_release()", + "change_sustain()", "change_cutoff_attack()", "change_cutoff_decay()", + "change_cutoff_sustain()", "change_cutoff_release()", + "change_amp_lfo_freq()", "change_cutoff_lfo_freq()", + "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", + "change_pan_time()", "fade_in()", "fade_out()", "change_play_pos()". + - Fixed built-in function "change_play_pos()" not having accepted metric + prefixes at all. + - Fixed the following built-in functions having misinterpreted values given + with unit type (for their 2nd argument) as if they were relative values + (that is as if they were passed without a unit type): "change_attack()", + "change_decay()", "change_release()", "change_cutoff_attack()", + "change_cutoff_decay()", "change_cutoff_release()". + - Fixed the following built-in functions having applied completely wrong + 'final' values: "change_sustain()", "change_cutoff_sustain()" (since the + respective EGs being their modulation sink assume uint data type with + value range 0..1000 instead of 0.0..1.0. + - Added individual parse-time checks of function arguments for the following + built-in functions: "play_note()", "note_off()", "set_event_mark()", + "delete_event_mark()", "by_marks()", "change_cutoff()", "change_attack()", + "change_decay()", "change_release()", "change_cutoff_attack()", + "change_cutoff_decay()", "change_cutoff_release()", + "change_amp_lfo_freq()", "change_cutoff_lfo_freq()", + "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()" and + "change_pan_time()". + - Don't abort function call if unit type was used and at the same time + 'final' operator was omitted for the primary value argument of the + following built-in functions: "change_cutoff()", "change_attack()", + "change_decay()", "change_release()", "change_cutoff_attack()", + "change_cutoff_decay()", "change_cutoff_release()", + "change_amp_lfo_freq()", "change_cutoff_lfo_freq()", + "change_pitch_lfo_freq()", "change_vol_time()", "change_tune_time()", + "change_pan_time()", instead imply 'final'ness at runtime and raise an + appropriate parser warning at parse time. + - Added built-in real number functions "round()", "ceil()", "floor()", + "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", "sin()", + "cos()", "tan()", "asin()", "acos()", "atan()". + - Added built-in script real number constant "~NI_MATH_PI". + - Added built-in script real number constant "~NI_MATH_E". + - NKSP language: Allow unary '+' operator. + - Added built-in script functions "msb()" and "lsb()". + - NKSP language: Added support for RPN event handler + ("on rpn ... end on" in instrument scripts). + - NKSP language: Added support for NRPN event handler + ("on nrpn ... end on" in instrument scripts). + - Added built-in read-only variables "$RPN_ADDRESS" and "$RPN_VALUE" which + may be read from the new RPN/NRPN script handlers to get the (N)RPN + parameter that had been changed and its new value. + - Added built-in const variables "$NI_CB_TYPE_RPN" and "$NI_CB_TYPE_NRPN" + which are identifying the new (N)RPN handlers as such at script runtime. * test cases: - Fixed compiler errors in test cases. @@ -143,6 +238,43 @@ 'final' operator usage cases. - Added NKSP test cases for (floating point tolerance aware) real number equalness / unequalness comparison. + - Added NKSP int array and real array tests for value assignment and + initialization of arrays. + - Added NKSP test cases for built-in functions "round()", "ceil()", + "floor()", "sqrt()", "log()", "log2()", "log10()", "exp()", "pow()", + "sin()", "cos()", "tan()", "asin()", "acos()", "atan()". + - Added NKSP test cases for unary '+' operator. + + * GigaStudio/Gigasampler format engine: + - LFOTriangleIntMath and LFOTriangleIntAbsMath: Fixed FlipPhase=true + behaviour for start_level_mid. + - Changed LFO start levels: LFO1 and LFO2 both to mid, LFO3 to max. start + level (see discussion "GigaStudio LFO compatibility" on mailing list + from 2019-09-26 for details). + - Changed default wave form for all 3 LFOs to sine (instead of triangle; + see discussion "GigaStudio LFO compatibility" on mailing list from + 2019-09-26 for details). + - Format extension: Added support for different LFO wave forms (currently + either sine [default], triangle, saw or square). + - Format extension: Added support for LFO phase displacement (0°..360°). + - Format extension: Added support for flipping LFO polarity on LFO 3 + (in the original gig format this was only available for LFO 1 and LFO 2). + - Format extension: Support for additional filter types: + lowpass 1/2/4/6-pole, highpass 1/2/4/6-pole, bandpass 2-pole, + bandreject 2-pole. + + * SFZ format engine: + - Fixed support for regions with loccN/hiccN conditions on more than one + MIDI controller. + + * Benchmarks: + - Fixed benchmarks/triang.cpp falsely having favoured "int math abs" + algorithm (since result of 2nd run was not accumulated). + - Added benchmark for saw wave (benchmarks/saw.cpp). + - Added benchmark for sine wave (benchmarks/sine.cpp). + - Added benchmark for square wave (benchmarks/square.cpp). + - Increased amount of benchmarks runs by factor 6 to achieve benchmark times + which are large enough on modern systems. Version 2.1.1 (27 Jul 2019)