From 005f875b5206d6181bd8009d315f016d8ff5e9ec Mon Sep 17 00:00:00 2001 From: brummer10 Date: Sat, 2 Sep 2023 08:55:38 +0200 Subject: [PATCH] Fix issue #2 Neural Capture' is a registered trademark of NDSP --- Makefile | 8 ++++---- NeuralCapture.png => NeuralRecord.png | Bin README.md | 12 ++++++------ .../CairoWidgets.hpp | 0 .../DistrhoPluginInfo.h | 6 +++--- plugins/{NeuralCapture => NeuralRecord}/Makefile | 2 +- .../PluginNeuralCapture.cpp | 0 .../PluginNeuralCapture.hpp | 6 +++--- .../UINeuralCapture.cpp | 0 .../UINeuralCapture.hpp | 0 plugins/{NeuralCapture => NeuralRecord}/profiler.cc | 8 ++++++++ plugins/{NeuralCapture => NeuralRecord}/profiler.h | 0 .../resources/input.wav | Bin 13 files changed, 25 insertions(+), 17 deletions(-) rename NeuralCapture.png => NeuralRecord.png (100%) rename plugins/{NeuralCapture => NeuralRecord}/CairoWidgets.hpp (100%) rename plugins/{NeuralCapture => NeuralRecord}/DistrhoPluginInfo.h (85%) rename plugins/{NeuralCapture => NeuralRecord}/Makefile (99%) rename plugins/{NeuralCapture => NeuralRecord}/PluginNeuralCapture.cpp (100%) rename plugins/{NeuralCapture => NeuralRecord}/PluginNeuralCapture.hpp (94%) rename plugins/{NeuralCapture => NeuralRecord}/UINeuralCapture.cpp (100%) rename plugins/{NeuralCapture => NeuralRecord}/UINeuralCapture.hpp (100%) rename plugins/{NeuralCapture => NeuralRecord}/profiler.cc (98%) rename plugins/{NeuralCapture => NeuralRecord}/profiler.h (100%) rename plugins/{NeuralCapture => NeuralRecord}/resources/input.wav (100%) diff --git a/Makefile b/Makefile index 8b04110..c6675dc 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ libs: $(MAKE) -C dpf/dgl ../build/libdgl-cairo.a plugins: libs - $(MAKE) all -C plugins/NeuralCapture + $(MAKE) all -C plugins/NeuralRecord ifneq ($(CROSS_COMPILING),true) gen: plugins dpf/utils/lv2_ttl_generator @@ -108,14 +108,14 @@ endif clean: $(MAKE) clean -C dpf/dgl $(MAKE) clean -C dpf/utils/lv2-ttl-generator - $(MAKE) clean -C plugins/NeuralCapture + $(MAKE) clean -C plugins/NeuralRecord rm -rf bin build install: all - $(MAKE) install -C plugins/NeuralCapture + $(MAKE) install -C plugins/NeuralRecord install-user: all - $(MAKE) install-user -C plugins/NeuralCapture + $(MAKE) install-user -C plugins/NeuralRecord # -------------------------------------------------------------- diff --git a/NeuralCapture.png b/NeuralRecord.png similarity index 100% rename from NeuralCapture.png rename to NeuralRecord.png diff --git a/README.md b/README.md index e1b4bfe..ce9e53d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# Neural Capture +# Neural Record -A Neural Capture plug to make the process of cloning external soft/hardware a bit more comfortable +A Neural Recorder plug to make the process of cloning external soft/hardware a bit more comfortable -![NeuralCapture](https://github.com/brummer10/neuralcapture/blob/main/NeuralCapture.png?raw=true) +![NeuralRecord](https://github.com/brummer10/neuralrecord/blob/main/NeuralRecord.png?raw=true) ## Formats -Neural Capture come in the following plug-in formats: +Neural Record come in the following plug-in formats: * [LV2] * [VST3] @@ -19,8 +19,8 @@ section "Prerequisites" below) and then clone this repository (including sub-modules) and simply run `make` in the project's root directory: ```con -git clone --recursive https://github.com:brummer10/neuralcapture -cd neuralcapture +git clone --recursive https://github.com:brummer10/neuralrecord +cd neuralrecord make ``` diff --git a/plugins/NeuralCapture/CairoWidgets.hpp b/plugins/NeuralRecord/CairoWidgets.hpp similarity index 100% rename from plugins/NeuralCapture/CairoWidgets.hpp rename to plugins/NeuralRecord/CairoWidgets.hpp diff --git a/plugins/NeuralCapture/DistrhoPluginInfo.h b/plugins/NeuralRecord/DistrhoPluginInfo.h similarity index 85% rename from plugins/NeuralCapture/DistrhoPluginInfo.h rename to plugins/NeuralRecord/DistrhoPluginInfo.h index 6383935..9132a90 100644 --- a/plugins/NeuralCapture/DistrhoPluginInfo.h +++ b/plugins/NeuralRecord/DistrhoPluginInfo.h @@ -10,9 +10,9 @@ #define DISTRHO_PLUGIN_INFO_H #define DISTRHO_PLUGIN_BRAND "brummer" -#define DISTRHO_PLUGIN_NAME "NeuralCapture" -#define DISTRHO_PLUGIN_URI "urn:brummer10:neuralcapture" -#define DISTRHO_PLUGIN_CLAP_ID "com.github.brummer10.neuralcapture" +#define DISTRHO_PLUGIN_NAME "Neural Record" +#define DISTRHO_PLUGIN_URI "urn:brummer10:neuralrecord" +#define DISTRHO_PLUGIN_CLAP_ID "com.github.brummer10.neuralrecord" #define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_UI_USE_NANOVG 0 diff --git a/plugins/NeuralCapture/Makefile b/plugins/NeuralRecord/Makefile similarity index 99% rename from plugins/NeuralCapture/Makefile rename to plugins/NeuralRecord/Makefile index 9bb5de7..4954a6d 100644 --- a/plugins/NeuralCapture/Makefile +++ b/plugins/NeuralRecord/Makefile @@ -7,7 +7,7 @@ # -------------------------------------------------------------- # Project name, used for binaries -NAME = neuralcapture +NAME = neuralrecord # -------------------------------------------------------------- # Plugin types to build diff --git a/plugins/NeuralCapture/PluginNeuralCapture.cpp b/plugins/NeuralRecord/PluginNeuralCapture.cpp similarity index 100% rename from plugins/NeuralCapture/PluginNeuralCapture.cpp rename to plugins/NeuralRecord/PluginNeuralCapture.cpp diff --git a/plugins/NeuralCapture/PluginNeuralCapture.hpp b/plugins/NeuralRecord/PluginNeuralCapture.hpp similarity index 94% rename from plugins/NeuralCapture/PluginNeuralCapture.hpp rename to plugins/NeuralRecord/PluginNeuralCapture.hpp index c230aaf..9249809 100644 --- a/plugins/NeuralCapture/PluginNeuralCapture.hpp +++ b/plugins/NeuralRecord/PluginNeuralCapture.hpp @@ -51,11 +51,11 @@ class PluginNeuralCapture : public Plugin { // Information const char* getLabel() const noexcept override { - return "NeuralCapture"; + return "Neural Record"; } const char* getDescription() const override { - return "A Neural Capture plug to make the process of cloning external soft/hardware a bit more comfortable "; + return "A Neural Record plug to make the process of cloning external soft/hardware a bit more comfortable "; } const char* getMaker() const noexcept override { @@ -63,7 +63,7 @@ class PluginNeuralCapture : public Plugin { } const char* getHomePage() const override { - return "https://github.com/brummer10/neuralcapture"; + return "https://github.com/brummer10/neuralrecord"; } const char* getLicense() const noexcept override { diff --git a/plugins/NeuralCapture/UINeuralCapture.cpp b/plugins/NeuralRecord/UINeuralCapture.cpp similarity index 100% rename from plugins/NeuralCapture/UINeuralCapture.cpp rename to plugins/NeuralRecord/UINeuralCapture.cpp diff --git a/plugins/NeuralCapture/UINeuralCapture.hpp b/plugins/NeuralRecord/UINeuralCapture.hpp similarity index 100% rename from plugins/NeuralCapture/UINeuralCapture.hpp rename to plugins/NeuralRecord/UINeuralCapture.hpp diff --git a/plugins/NeuralCapture/profiler.cc b/plugins/NeuralRecord/profiler.cc similarity index 98% rename from plugins/NeuralCapture/profiler.cc rename to plugins/NeuralRecord/profiler.cc index 9d446a0..d25c18e 100644 --- a/plugins/NeuralCapture/profiler.cc +++ b/plugins/NeuralRecord/profiler.cc @@ -224,7 +224,15 @@ inline std::string Profil::get_path() { std::string pPath; #ifndef __MOD_DEVICES__ +#if defined(WIN32) || defined(_WIN32) + pPath = getenv("USERPROFILE"); + if (pPath.empty()) { + pPath = getenv("HOMEDRIVE"); + pPath += getenv("HOMEPATH"); + } +#else pPath = getenv("HOME"); +#endif pPath +=PATH_SEPARATOR; pPath +="profiles"; pPath +=PATH_SEPARATOR; diff --git a/plugins/NeuralCapture/profiler.h b/plugins/NeuralRecord/profiler.h similarity index 100% rename from plugins/NeuralCapture/profiler.h rename to plugins/NeuralRecord/profiler.h diff --git a/plugins/NeuralCapture/resources/input.wav b/plugins/NeuralRecord/resources/input.wav similarity index 100% rename from plugins/NeuralCapture/resources/input.wav rename to plugins/NeuralRecord/resources/input.wav