From 8c71defc996582ddd500dd68098603a20f5a5b8b Mon Sep 17 00:00:00 2001 From: brummer10 Date: Sun, 7 Apr 2024 14:15:52 +0200 Subject: [PATCH] Add proper LICENSE --- LICENSE | 29 +++++++++++++++++++++++++++++ Ratatouille/NeuralAmpMulti.cc | 11 ++++++++++- Ratatouille/Ratatouille.c | 7 +++++++ Ratatouille/Ratatouille.cpp | 7 +++++++ Ratatouille/Ratatouille.ttl | 2 ++ Ratatouille/RtNeuralMulti.cc | 7 +++++++ Ratatouille/dcblocker.cc | 9 +++++++-- Ratatouille/makefile | 2 +- 8 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..02e4932 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2024, brummer +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Ratatouille/NeuralAmpMulti.cc b/Ratatouille/NeuralAmpMulti.cc index 4d36d54..0b68867 100644 --- a/Ratatouille/NeuralAmpMulti.cc +++ b/Ratatouille/NeuralAmpMulti.cc @@ -1,4 +1,10 @@ - +/* + * NeuralAmpMulti.cc + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (C) 2024 brummer + */ #include "dsp.h" #include "activations.h" @@ -123,6 +129,7 @@ void NeuralAmpMulti::compute(int count, float *input0, float *output0) memcpy(bufa, output0, count*sizeof(float)); float bufb[count]; memcpy(bufb, output0, count*sizeof(float)); + // process model A if (modela && readyA.load(std::memory_order_acquire)) { if (need_aresample ) { @@ -153,6 +160,7 @@ void NeuralAmpMulti::compute(int count, float *input0, float *output0) modela->finalize_(count); } } + // process model B if (modelb && readyB.load(std::memory_order_acquire)) { if (need_bresample) { @@ -187,6 +195,7 @@ void NeuralAmpMulti::compute(int count, float *input0, float *output0) modelb->finalize_(count); } } + //mix model A/B if (modela && modelb && readyA.load(std::memory_order_acquire) && readyB.load(std::memory_order_acquire)) { diff --git a/Ratatouille/Ratatouille.c b/Ratatouille/Ratatouille.c index 6c05636..146d8db 100644 --- a/Ratatouille/Ratatouille.c +++ b/Ratatouille/Ratatouille.c @@ -1,3 +1,10 @@ +/* + * Ratatouille.c + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (C) 2024 brummer + */ #define CONTROLS 3 diff --git a/Ratatouille/Ratatouille.cpp b/Ratatouille/Ratatouille.cpp index 198be46..e15e323 100644 --- a/Ratatouille/Ratatouille.cpp +++ b/Ratatouille/Ratatouille.cpp @@ -1,3 +1,10 @@ +/* + * Ratatouille.cpp + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (C) 2024 brummer + */ #include #include diff --git a/Ratatouille/Ratatouille.ttl b/Ratatouille/Ratatouille.ttl index d4c3d99..b9bffb4 100644 --- a/Ratatouille/Ratatouille.ttl +++ b/Ratatouille/Ratatouille.ttl @@ -18,6 +18,7 @@ @prefix state: . @prefix mod: . @prefix rata: . +@prefix spdx: . @@ -53,6 +54,7 @@ rata:RTN_Model1 lv2:SimulatorPlugin ; doap:maintainer ; doap:name "Ratatouille" ; + doap:license ; lv2:project ; lv2:requiredFeature urid:map ; lv2:optionalFeature lv2:hardRTCapable ; diff --git a/Ratatouille/RtNeuralMulti.cc b/Ratatouille/RtNeuralMulti.cc index f982302..69352c8 100644 --- a/Ratatouille/RtNeuralMulti.cc +++ b/Ratatouille/RtNeuralMulti.cc @@ -1,3 +1,10 @@ +/* + * RtNeuralMulti.cc + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (C) 2024 brummer + */ #include "RTNeural.h" diff --git a/Ratatouille/dcblocker.cc b/Ratatouille/dcblocker.cc index c88d925..d577ddf 100644 --- a/Ratatouille/dcblocker.cc +++ b/Ratatouille/dcblocker.cc @@ -1,5 +1,10 @@ -// generated from file 'dcblocker.dsp' by dsp2cc: -// Code generated with Faust 2.70.3 (https://faust.grame.fr) +/* + * dcblocker.cc + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (C) 2024 brummer + */ #include diff --git a/Ratatouille/makefile b/Ratatouille/makefile index c35425c..96baf93 100644 --- a/Ratatouille/makefile +++ b/Ratatouille/makefile @@ -155,7 +155,7 @@ mod: $(EXEC_NAME).$(LIB_EXT) fi @$(B_ECHO) "=================== DONE =======================$(reset)" -$(EXEC_NAME)_ui.$(LIB_EXT): $(EXEC_NAME).c $(GUIIMPL_SOURCE) +$(EXEC_NAME)_ui.$(LIB_EXT): $(EXEC_NAME).c $(GUIIMPL_SOURCE) $(UI_LIB) @$(B_ECHO) "Compiling $(EXEC_NAME)_ui.$(LIB_EXT) $(reset)" $(QUIET)$(CC) $(CFLAGS) '$(NAME).c' -L. $(UI_LIB) -o '$(EXEC_NAME)_ui.$(LIB_EXT)' $(LDFLAGS) $(GUI_LDFLAGS) -I./ $(QUIET)$(STRIP) -s -x -X -R .comment -R .note.ABI-tag $(EXEC_NAME)_ui.$(LIB_EXT)