Skip to content

Commit

Permalink
Add proper LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Apr 7, 2024
1 parent 1a0f3b3 commit 8c71def
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 4 deletions.
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2024, brummer <[email protected]>
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.
11 changes: 10 additions & 1 deletion Ratatouille/NeuralAmpMulti.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

/*
* NeuralAmpMulti.cc
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (C) 2024 brummer <[email protected]>
*/

#include "dsp.h"
#include "activations.h"
Expand Down Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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)) {
Expand Down
7 changes: 7 additions & 0 deletions Ratatouille/Ratatouille.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Ratatouille.c
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (C) 2024 brummer <[email protected]>
*/


#define CONTROLS 3
Expand Down
7 changes: 7 additions & 0 deletions Ratatouille/Ratatouille.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Ratatouille.cpp
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (C) 2024 brummer <[email protected]>
*/

#include <atomic>
#include <mutex>
Expand Down
2 changes: 2 additions & 0 deletions Ratatouille/Ratatouille.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@prefix state: <http://lv2plug.in/ns/ext/state#> .
@prefix mod: <http://moddevices.com/ns/mod#> .
@prefix rata: <urn:brummer:ratatouille#> .
@prefix spdx: <http://spdx.org/rdf/terms#> .


<urn:name#me>
Expand Down Expand Up @@ -53,6 +54,7 @@ rata:RTN_Model1
lv2:SimulatorPlugin ;
doap:maintainer <urn:name#me> ;
doap:name "Ratatouille" ;
doap:license <https://spdx.org/licenses/BSD-3-Clause> ;
lv2:project <urn:brummer:ratatouille> ;
lv2:requiredFeature urid:map ;
lv2:optionalFeature lv2:hardRTCapable ;
Expand Down
7 changes: 7 additions & 0 deletions Ratatouille/RtNeuralMulti.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* RtNeuralMulti.cc
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (C) 2024 brummer <[email protected]>
*/


#include "RTNeural.h"
Expand Down
9 changes: 7 additions & 2 deletions Ratatouille/dcblocker.cc
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*/

#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion Ratatouille/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8c71def

Please sign in to comment.