Skip to content

Commit

Permalink
Release 1.0.8
Browse files Browse the repository at this point in the history
* Updated build scripts and dependencies.
  • Loading branch information
sadko4u committed Sep 10, 2023
2 parents 4ded99c + 7dcff6e commit f733ce9
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 39 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* RECENT CHANGES
*******************************************************************************

=== 1.0.8 ===
* Updated build scripts and dependencies.

=== 1.0.7 ===
* Updated build scripts and dependencies.

Expand Down
38 changes: 21 additions & 17 deletions include/private/plugins/noise_generator.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2022 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2022 Stefano Tronci <[email protected]>
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2023 Stefano Tronci <[email protected]>
*
* This file is part of lsp-plugins
* Created on: 27 Feb 2022
Expand Down Expand Up @@ -153,19 +153,8 @@ namespace lsp
plug::IPort *pReactivity; // FFT reactivity
plug::IPort *pShiftGain; // FFT gain shift

public:
explicit noise_generator(const meta::plugin_t *meta);
virtual ~noise_generator();

virtual void init(plug::IWrapper *wrapper, plug::IPort **ports);
void destroy();

public:
virtual void update_sample_rate(long sr);
virtual void update_settings();
virtual void process(size_t samples);
virtual bool inline_display(plug::ICanvas *cv, size_t width, size_t height);
virtual void dump(dspu::IStateDumper *v) const;
protected:
void do_destroy();

protected:
inline ssize_t make_seed() const;
Expand All @@ -174,9 +163,24 @@ namespace lsp
static dspu::ng_color_t get_color(size_t value);
static dspu::stlt_slope_unit_t get_color_slope_unit(size_t value);
static ch_mode_t get_channel_mode(size_t value);

public:
explicit noise_generator(const meta::plugin_t *meta);
virtual ~noise_generator() override;

virtual void init(plug::IWrapper *wrapper, plug::IPort **ports) override;
void destroy() override;

public:
virtual void update_sample_rate(long sr) override;
virtual void update_settings() override;
virtual void process(size_t samples) override;
virtual bool inline_display(plug::ICanvas *cv, size_t width, size_t height) override;
virtual void dump(dspu::IStateDumper *v) const override;
};
}
}

} /* namespace plugins */
} /* namespace lsp */


#endif /* PRIVATE_PLUGINS_NOISE_GENERATOR_H_ */
28 changes: 14 additions & 14 deletions modules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,62 +19,62 @@
#

# Variables that describe dependencies
LSP_3RD_PARTY_VERSION := 1.0.11
LSP_3RD_PARTY_VERSION := 1.0.12
LSP_3RD_PARTY_NAME := lsp-3rd-party
LSP_3RD_PARTY_TYPE := hdr
LSP_3RD_PARTY_INC_OPT := -idirafter
LSP_3RD_PARTY_URL_RO := https://github.com/lsp-plugins/$(LSP_3RD_PARTY_NAME).git
LSP_3RD_PARTY_URL_RW := [email protected]:lsp-plugins/$(LSP_3RD_PARTY_NAME).git

LSP_COMMON_LIB_VERSION := 1.0.30
LSP_COMMON_LIB_VERSION := 1.0.31
LSP_COMMON_LIB_NAME := lsp-common-lib
LSP_COMMON_LIB_TYPE := src
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git
LSP_COMMON_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_COMMON_LIB_NAME).git

LSP_DSP_LIB_VERSION := 1.0.14
LSP_DSP_LIB_VERSION := 1.0.16
LSP_DSP_LIB_NAME := lsp-dsp-lib
LSP_DSP_LIB_TYPE := src
LSP_DSP_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_LIB_NAME).git
LSP_DSP_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_LIB_NAME).git

LSP_DSP_UNITS_VERSION := 1.0.13
LSP_DSP_UNITS_VERSION := 1.0.15
LSP_DSP_UNITS_NAME := lsp-dsp-units
LSP_DSP_UNITS_TYPE := src
LSP_DSP_UNITS_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_UNITS_NAME).git
LSP_DSP_UNITS_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_UNITS_NAME).git

LSP_LLTL_LIB_VERSION := 1.0.13
LSP_LLTL_LIB_VERSION := 1.0.14
LSP_LLTL_LIB_NAME := lsp-lltl-lib
LSP_LLTL_LIB_TYPE := src
LSP_LLTL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_LLTL_LIB_NAME).git
LSP_LLTL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_LLTL_LIB_NAME).git

LSP_R3D_BASE_LIB_VERSION := 1.0.13
LSP_R3D_BASE_LIB_VERSION := 1.0.14
LSP_R3D_BASE_LIB_NAME := lsp-r3d-base-lib
LSP_R3D_BASE_LIB_TYPE := src
LSP_R3D_BASE_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git
LSP_R3D_BASE_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git

LSP_R3D_IFACE_VERSION := 1.0.13
LSP_R3D_IFACE_VERSION := 1.0.14
LSP_R3D_IFACE_NAME := lsp-r3d-iface
LSP_R3D_IFACE_TYPE := src
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git
LSP_R3D_IFACE_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_IFACE_NAME).git

LSP_R3D_GLX_LIB_VERSION := 1.0.13
LSP_R3D_GLX_LIB_VERSION := 1.0.14
LSP_R3D_GLX_LIB_NAME := lsp-r3d-glx-lib
LSP_R3D_GLX_LIB_TYPE := bin
LSP_R3D_GLX_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git
LSP_R3D_GLX_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git

LSP_R3D_WGL_LIB_VERSION := 1.0.8
LSP_R3D_WGL_LIB_VERSION := 1.0.9
LSP_R3D_WGL_LIB_NAME := lsp-r3d-wgl-lib
LSP_R3D_WGL_LIB_TYPE := bin
LSP_R3D_WGL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git
LSP_R3D_WGL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git

LSP_RUNTIME_LIB_VERSION := 1.0.16
LSP_RUNTIME_LIB_VERSION := 1.0.17
LSP_RUNTIME_LIB_NAME := lsp-runtime-lib
LSP_RUNTIME_LIB_TYPE := src
LSP_RUNTIME_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_RUNTIME_LIB_NAME).git
Expand All @@ -86,26 +86,26 @@ LSP_TEST_FW_TYPE := src
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git
LSP_TEST_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_TEST_FW_NAME).git

LSP_TK_LIB_VERSION := 1.0.13
LSP_TK_LIB_VERSION := 1.0.15
LSP_TK_LIB_NAME := lsp-tk-lib
LSP_TK_LIB_TYPE := src
LSP_TK_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_TK_LIB_NAME).git
LSP_TK_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_TK_LIB_NAME).git

LSP_WS_LIB_VERSION := 1.0.13
LSP_WS_LIB_VERSION := 1.0.15
LSP_WS_LIB_NAME := lsp-ws-lib
LSP_WS_LIB_TYPE := src
LSP_WS_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_WS_LIB_NAME).git
LSP_WS_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_WS_LIB_NAME).git

# Plugin-related module dependencies
LSP_PLUGIN_FW_VERSION := 1.0.15
LSP_PLUGIN_FW_VERSION := 1.0.17
LSP_PLUGIN_FW_NAME := lsp-plugin-fw
LSP_PLUGIN_FW_TYPE := src
LSP_PLUGIN_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGIN_FW_NAME).git
LSP_PLUGIN_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_PLUGIN_FW_NAME).git

LSP_PLUGINS_SHARED_VERSION := 1.0.14
LSP_PLUGINS_SHARED_VERSION := 1.0.16
LSP_PLUGINS_SHARED_NAME := lsp-plugins-shared
LSP_PLUGINS_SHARED_TYPE := src
LSP_PLUGINS_SHARED_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGINS_SHARED_NAME).git
Expand Down
2 changes: 1 addition & 1 deletion project.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARTIFACT_TYPE = plug
ARTIFACT_DESC = LSP Noise Generator Plugin Series
ARTIFACT_HEADERS = lsp-plug.in
ARTIFACT_EXPORT_HEADERS = 0
ARTIFACT_VERSION = 1.0.7
ARTIFACT_VERSION = 1.0.8



2 changes: 1 addition & 1 deletion src/main/meta/noise_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#define LSP_PLUGINS_NOISE_GENERATOR_VERSION_MAJOR 1
#define LSP_PLUGINS_NOISE_GENERATOR_VERSION_MINOR 0
#define LSP_PLUGINS_NOISE_GENERATOR_VERSION_MICRO 7
#define LSP_PLUGINS_NOISE_GENERATOR_VERSION_MICRO 8

#define LSP_PLUGINS_NOISE_GENERATOR_VERSION \
LSP_MODULE_VERSION( \
Expand Down
49 changes: 43 additions & 6 deletions src/main/plug/noise_generator.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2022 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2022 Stefano Tronci <[email protected]>
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
* (C) 2023 Stefano Tronci <[email protected]>
*
* This file is part of lsp-plugins
* Created on: 27 Feb 2022
Expand Down Expand Up @@ -75,6 +75,40 @@ namespace lsp
if (meta::is_audio_in_port(p))
++nChannels;

for (size_t i=0; i<meta::noise_generator::NUM_GENERATORS; ++i)
{
generator_t *g = &vGenerators[i];

g->fGain = 0.0f;
g->bActive = false;
g->bInaudible = false;
g->bUpdPlots = true;

g->vBuffer = NULL;
g->vFreqChart = NULL;

g->pNoiseType = NULL;
g->pAmplitude = NULL;
g->pOffset = NULL;
g->pSlSw = NULL;
g->pMtSw = NULL;
g->pInaSw = NULL;
g->pLCGdist = NULL;
g->pVelvetType = NULL;
g->pVelvetWin = NULL;
g->pVelvetARNd = NULL;
g->pVelvetCSW = NULL;
g->pVelvetCpr = NULL;
g->pColorSel = NULL;
g->pCslopeNPN = NULL;
g->pCslopeDBO = NULL;
g->pCslopeDBD = NULL;
g->pFft = NULL;
g->pMeterOut = NULL;
g->pMsh = NULL;
g->pSpectrum = NULL;
}

// Initialize other parameters
vChannels = NULL;
vFreqs = NULL;
Expand All @@ -97,7 +131,7 @@ namespace lsp

noise_generator::~noise_generator()
{
destroy();
do_destroy();
}

ssize_t noise_generator::make_seed() const
Expand Down Expand Up @@ -422,6 +456,12 @@ namespace lsp
}

void noise_generator::destroy()
{
Module::destroy();
do_destroy();
}

void noise_generator::do_destroy()
{
// Drop inline display data structures
if (pIDisplay != NULL)
Expand Down Expand Up @@ -464,9 +504,6 @@ namespace lsp

// Destroy analyzer
sAnalyzer.destroy();

// Destroy parent module
Module::destroy();
}

void noise_generator::update_sample_rate(long sr)
Expand Down

0 comments on commit f733ce9

Please sign in to comment.