From a28327c4f9cf723cca2612b71e55f235076b9a6f Mon Sep 17 00:00:00 2001 From: Gerard Roma Date: Tue, 10 Mar 2020 22:06:49 +0100 Subject: [PATCH] AmpSlice: refactor into AmpGate+AmpSlice --- src/FluidAmpGate/CMakeLists.txt | 21 +++++++++++++++++++++ src/FluidAmpGate/FluidAmpSlice.cpp | 22 ++++++++++++++++++++++ src/FluidBufAmpGate/CMakeLists.txt | 21 +++++++++++++++++++++ src/FluidBufAmpGate/FluidBufAmpSlice.cpp | 22 ++++++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 src/FluidAmpGate/CMakeLists.txt create mode 100644 src/FluidAmpGate/FluidAmpSlice.cpp create mode 100644 src/FluidBufAmpGate/CMakeLists.txt create mode 100644 src/FluidBufAmpGate/FluidBufAmpSlice.cpp diff --git a/src/FluidAmpGate/CMakeLists.txt b/src/FluidAmpGate/CMakeLists.txt new file mode 100644 index 0000000..9646a4e --- /dev/null +++ b/src/FluidAmpGate/CMakeLists.txt @@ -0,0 +1,21 @@ +# Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) +# Copyright 2017-2019 University of Huddersfield. +# Licensed under the BSD-3 License. +# See license.md file in the project root for full license information. +# This project has received funding from the European Research Council (ERC) +# under the European Union’s Horizon 2020 research and innovation programme +# (grant agreement No 725899). + +cmake_minimum_required(VERSION 3.11) + +get_filename_component(PLUGIN ${CMAKE_CURRENT_LIST_DIR} NAME_WE) +message("Configuring ${PLUGIN}") +set(FILENAME ${PLUGIN}.cpp) + +add_library( + ${PLUGIN} + MODULE + ${FILENAME} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../../scripts/target_post.cmake) diff --git a/src/FluidAmpGate/FluidAmpSlice.cpp b/src/FluidAmpGate/FluidAmpSlice.cpp new file mode 100644 index 0000000..3ac71fd --- /dev/null +++ b/src/FluidAmpGate/FluidAmpSlice.cpp @@ -0,0 +1,22 @@ +/* +Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) +Copyright 2017-2019 University of Huddersfield. +Licensed under the BSD-3 License. +See license.md file in the project root for full license information. +This project has received funding from the European Research Council (ERC) +under the European Union’s Horizon 2020 research and innovation programme +(grant agreement No 725899). +*/ + +#include + +#include + +static InterfaceTable *ft; + +PluginLoad(FluidSTFTUGen) +{ + ft = inTable; + using namespace fluid::client; + makeSCWrapper("FluidAmpSlice", ft); +} diff --git a/src/FluidBufAmpGate/CMakeLists.txt b/src/FluidBufAmpGate/CMakeLists.txt new file mode 100644 index 0000000..9646a4e --- /dev/null +++ b/src/FluidBufAmpGate/CMakeLists.txt @@ -0,0 +1,21 @@ +# Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) +# Copyright 2017-2019 University of Huddersfield. +# Licensed under the BSD-3 License. +# See license.md file in the project root for full license information. +# This project has received funding from the European Research Council (ERC) +# under the European Union’s Horizon 2020 research and innovation programme +# (grant agreement No 725899). + +cmake_minimum_required(VERSION 3.11) + +get_filename_component(PLUGIN ${CMAKE_CURRENT_LIST_DIR} NAME_WE) +message("Configuring ${PLUGIN}") +set(FILENAME ${PLUGIN}.cpp) + +add_library( + ${PLUGIN} + MODULE + ${FILENAME} +) + +include(${CMAKE_CURRENT_LIST_DIR}/../../scripts/target_post.cmake) diff --git a/src/FluidBufAmpGate/FluidBufAmpSlice.cpp b/src/FluidBufAmpGate/FluidBufAmpSlice.cpp new file mode 100644 index 0000000..78a5100 --- /dev/null +++ b/src/FluidBufAmpGate/FluidBufAmpSlice.cpp @@ -0,0 +1,22 @@ +/* +Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/) +Copyright 2017-2019 University of Huddersfield. +Licensed under the BSD-3 License. +See license.md file in the project root for full license information. +This project has received funding from the European Research Council (ERC) +under the European Union’s Horizon 2020 research and innovation programme +(grant agreement No 725899). +*/ + +#include + +#include + +static InterfaceTable *ft; + +PluginLoad(OfflineFluidDecompositionUGens) +{ + ft = inTable; + using namespace fluid::client; + makeSCWrapper("FluidBufAmpSlice", ft); +}