Skip to content

Commit 1ca5204

Browse files
committed
Release 1.0.31
* Offline tasks are optimized for better floating-point computing. * Updated build scripts and dependencies.
2 parents 35b1fe4 + 745c10c commit 1ca5204

6 files changed

Lines changed: 44 additions & 37 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* RECENT CHANGES
33
*******************************************************************************
44

5+
=== 1.0.31 ===
6+
* Offline tasks are optimized for better floating-point computing.
7+
* Updated build scripts and dependencies.
8+
59
=== 1.0.30 ===
610
* Updated build scripts and dependencies.
711

modules.mk

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,62 +19,62 @@
1919
#
2020

2121
# Variables that describe dependencies
22-
LSP_3RD_PARTY_VERSION := 1.0.24
22+
LSP_3RD_PARTY_VERSION := 1.0.25
2323
LSP_3RD_PARTY_NAME := lsp-3rd-party
2424
LSP_3RD_PARTY_TYPE := hdr
2525
LSP_3RD_PARTY_INC_OPT := -idirafter
2626
LSP_3RD_PARTY_URL_RO := https://github.com/lsp-plugins/$(LSP_3RD_PARTY_NAME).git
2727
LSP_3RD_PARTY_URL_RW := git@github.com:lsp-plugins/$(LSP_3RD_PARTY_NAME).git
2828

29-
LSP_COMMON_LIB_VERSION := 1.0.43
29+
LSP_COMMON_LIB_VERSION := 1.0.44
3030
LSP_COMMON_LIB_NAME := lsp-common-lib
3131
LSP_COMMON_LIB_TYPE := src
3232
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git
3333
LSP_COMMON_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_COMMON_LIB_NAME).git
3434

35-
LSP_DSP_LIB_VERSION := 1.0.32
35+
LSP_DSP_LIB_VERSION := 1.0.33
3636
LSP_DSP_LIB_NAME := lsp-dsp-lib
3737
LSP_DSP_LIB_TYPE := src
3838
LSP_DSP_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_LIB_NAME).git
3939
LSP_DSP_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_DSP_LIB_NAME).git
4040

41-
LSP_DSP_UNITS_VERSION := 1.0.32
41+
LSP_DSP_UNITS_VERSION := 1.0.33
4242
LSP_DSP_UNITS_NAME := lsp-dsp-units
4343
LSP_DSP_UNITS_TYPE := src
4444
LSP_DSP_UNITS_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_UNITS_NAME).git
4545
LSP_DSP_UNITS_URL_RW := git@github.com:lsp-plugins/$(LSP_DSP_UNITS_NAME).git
4646

47-
LSP_LLTL_LIB_VERSION := 1.0.27
47+
LSP_LLTL_LIB_VERSION := 1.0.28
4848
LSP_LLTL_LIB_NAME := lsp-lltl-lib
4949
LSP_LLTL_LIB_TYPE := src
5050
LSP_LLTL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_LLTL_LIB_NAME).git
5151
LSP_LLTL_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_LLTL_LIB_NAME).git
5252

53-
LSP_R3D_BASE_LIB_VERSION := 1.0.25
53+
LSP_R3D_BASE_LIB_VERSION := 1.0.26
5454
LSP_R3D_BASE_LIB_NAME := lsp-r3d-base-lib
5555
LSP_R3D_BASE_LIB_TYPE := src
5656
LSP_R3D_BASE_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git
5757
LSP_R3D_BASE_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git
5858

59-
LSP_R3D_IFACE_VERSION := 1.0.25
59+
LSP_R3D_IFACE_VERSION := 1.0.26
6060
LSP_R3D_IFACE_NAME := lsp-r3d-iface
6161
LSP_R3D_IFACE_TYPE := src
6262
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git
6363
LSP_R3D_IFACE_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_IFACE_NAME).git
6464

65-
LSP_R3D_GLX_LIB_VERSION := 1.0.25
65+
LSP_R3D_GLX_LIB_VERSION := 1.0.26
6666
LSP_R3D_GLX_LIB_NAME := lsp-r3d-glx-lib
6767
LSP_R3D_GLX_LIB_TYPE := bin
6868
LSP_R3D_GLX_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git
6969
LSP_R3D_GLX_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git
7070

71-
LSP_R3D_WGL_LIB_VERSION := 1.0.20
71+
LSP_R3D_WGL_LIB_VERSION := 1.0.21
7272
LSP_R3D_WGL_LIB_NAME := lsp-r3d-wgl-lib
7373
LSP_R3D_WGL_LIB_TYPE := bin
7474
LSP_R3D_WGL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git
7575
LSP_R3D_WGL_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git
7676

77-
LSP_RUNTIME_LIB_VERSION := 1.0.30
77+
LSP_RUNTIME_LIB_VERSION := 1.0.31
7878
LSP_RUNTIME_LIB_NAME := lsp-runtime-lib
7979
LSP_RUNTIME_LIB_TYPE := src
8080
LSP_RUNTIME_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_RUNTIME_LIB_NAME).git
@@ -86,26 +86,26 @@ LSP_TEST_FW_TYPE := src
8686
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git
8787
LSP_TEST_FW_URL_RW := git@github.com:lsp-plugins/$(LSP_TEST_FW_NAME).git
8888

89-
LSP_TK_LIB_VERSION := 1.0.30
89+
LSP_TK_LIB_VERSION := 1.0.31
9090
LSP_TK_LIB_NAME := lsp-tk-lib
9191
LSP_TK_LIB_TYPE := src
9292
LSP_TK_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_TK_LIB_NAME).git
9393
LSP_TK_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_TK_LIB_NAME).git
9494

95-
LSP_WS_LIB_VERSION := 1.0.30
95+
LSP_WS_LIB_VERSION := 1.0.31
9696
LSP_WS_LIB_NAME := lsp-ws-lib
9797
LSP_WS_LIB_TYPE := src
9898
LSP_WS_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_WS_LIB_NAME).git
9999
LSP_WS_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_WS_LIB_NAME).git
100100

101101
# Plugin-related module dependencies
102-
LSP_PLUGIN_FW_VERSION := 1.0.33
102+
LSP_PLUGIN_FW_VERSION := 1.0.34
103103
LSP_PLUGIN_FW_NAME := lsp-plugin-fw
104104
LSP_PLUGIN_FW_TYPE := src
105105
LSP_PLUGIN_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGIN_FW_NAME).git
106106
LSP_PLUGIN_FW_URL_RW := git@github.com:lsp-plugins/$(LSP_PLUGIN_FW_NAME).git
107107

108-
LSP_PLUGINS_SHARED_VERSION := 1.0.32
108+
LSP_PLUGINS_SHARED_VERSION := 1.0.33
109109
LSP_PLUGINS_SHARED_NAME := lsp-plugins-shared
110110
LSP_PLUGINS_SHARED_TYPE := src
111111
LSP_PLUGINS_SHARED_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGINS_SHARED_NAME).git

project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ARTIFACT_TYPE = plug
2525
ARTIFACT_DESC = LSP Trigger Plugin Series
2626
ARTIFACT_HEADERS = lsp-plug.in
2727
ARTIFACT_EXPORT_HEADERS = 0
28-
ARTIFACT_VERSION = 1.0.30
28+
ARTIFACT_VERSION = 1.0.31
2929

3030

3131

src/main/meta/trigger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#define LSP_PLUGINS_TRIGGER_VERSION_MAJOR 1
2828
#define LSP_PLUGINS_TRIGGER_VERSION_MINOR 0
29-
#define LSP_PLUGINS_TRIGGER_VERSION_MICRO 30
29+
#define LSP_PLUGINS_TRIGGER_VERSION_MICRO 31
3030

3131
#define LSP_PLUGINS_TRIGGER_VERSION \
3232
LSP_MODULE_VERSION( \

src/main/plug/trigger_kernel.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ namespace lsp
4848

4949
status_t trigger_kernel::AFLoader::run()
5050
{
51+
dsp::context_t ctx;
52+
dsp::start(&ctx);
53+
lsp_finally { dsp::finish(&ctx); };
54+
5155
return pCore->load_file(pFile);
5256
};
5357

@@ -72,6 +76,10 @@ namespace lsp
7276

7377
status_t trigger_kernel::AFRenderer::run()
7478
{
79+
dsp::context_t ctx;
80+
dsp::start(&ctx);
81+
lsp_finally { dsp::finish(&ctx); };
82+
7583
return pCore->render_sample(pFile);
7684
};
7785

src/main/ui/trigger_midi.cpp

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,22 @@
2626

2727
namespace lsp
2828
{
29+
namespace meta
30+
{
31+
static constexpr float midi_velocity_min = 0.0f;
32+
static constexpr float midi_velocity_max = 127.0f;
33+
static constexpr float midi_velocity_err = 0.01f;
34+
static constexpr float midi_velocity_rng = midi_velocity_max - midi_velocity_min;
35+
36+
static const meta::port_t midi_velocity_template =
37+
INT_CONTROL_ALL("", "MIDI velocity", "MIDI vel", meta::U_NONE, midi_velocity_min, midi_velocity_max, 0.0f, 1.0f);
38+
39+
} /* namespace meta */
40+
2941
namespace plugui
3042
{
3143
namespace trigger_midi
3244
{
33-
static constexpr float midi_velocity_min = 0.0f;
34-
static constexpr float midi_velocity_max = 127.0f;
35-
static constexpr float midi_velocity_err = 0.01f;
36-
static constexpr float midi_velocity_rng = midi_velocity_max - midi_velocity_min;
37-
38-
const meta::port_t midi_velocity_template =
39-
{
40-
"",
41-
"MIDI velocity",
42-
NULL,
43-
meta::U_NONE,
44-
meta::R_CONTROL,
45-
meta::F_INT | meta::F_LOWER | meta::F_UPPER | meta::F_STEP,
46-
midi_velocity_min, midi_velocity_max, 0.0f, 0.05f,
47-
NULL, NULL, NULL
48-
};
49-
5045
MidiVelocityPort::MidiVelocityPort()
5146
{
5247
}
@@ -73,7 +68,7 @@ namespace lsp
7368
if (!tmp.append_utf8(cptr))
7469
return STATUS_NO_MEM;
7570

76-
return ProxyPort::init(tmp.get_utf8(), port, &midi_velocity_template);
71+
return ProxyPort::init(tmp.get_utf8(), port, &meta::midi_velocity_template);
7772
}
7873

7974
float MidiVelocityPort::from_value(float value)
@@ -82,7 +77,7 @@ namespace lsp
8277
if (meta == NULL)
8378
return value;
8479

85-
const float range = midi_velocity_rng / (meta->max - meta->min);
80+
const float range = meta::midi_velocity_rng / (meta->max - meta->min);
8681
return (value - meta->min) * range;
8782
}
8883

@@ -92,8 +87,8 @@ namespace lsp
9287
if (meta == NULL)
9388
return value;
9489

95-
const float range = (meta->max - meta->min + midi_velocity_err) / midi_velocity_rng;
96-
value = meta->min + (value - midi_velocity_min) * range;
90+
const float range = (meta->max - meta->min + meta::midi_velocity_err) / meta::midi_velocity_rng;
91+
value = meta->min + (value - meta::midi_velocity_min) * range;
9792
return lsp_limit(value, meta->min, meta->max);
9893
}
9994

0 commit comments

Comments
 (0)