From 9a792c72bf2e04be1754fac2e5a28f1570b7e1f2 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 24 Mar 2022 22:43:00 +0000 Subject: [PATCH] Slowly start introducing fundamental Signed-off-by: falkTX --- .gitmodules | 3 ++ plugins/Fundamental | 1 + plugins/Makefile | 4 --- plugins/plugins.cpp | 73 +++++++++++++++++---------------------------- 4 files changed, 32 insertions(+), 49 deletions(-) create mode 160000 plugins/Fundamental diff --git a/.gitmodules b/.gitmodules index 5eef79b..771ebb0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -184,3 +184,6 @@ [submodule "plugins/ArableInstruments"] path = plugins/ArableInstruments url = https://github.com/CardinalModules/ArableInstruments.git +[submodule "plugins/Fundamental"] + path = plugins/Fundamental + url = https://github.com/CardinalModules/Fundamental.git diff --git a/plugins/Fundamental b/plugins/Fundamental new file mode 160000 index 0000000..9159cc3 --- /dev/null +++ b/plugins/Fundamental @@ -0,0 +1 @@ +Subproject commit 9159cc3182ff3f4ec981fe574bd5dd1a9ea59490 diff --git a/plugins/Makefile b/plugins/Makefile index 2469f94..11fdfae 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -514,15 +514,11 @@ FEHLERFABRIK_CUSTOM = Operator Sequencer SlewLimiter # -------------------------------------------------------------- # Fundamental -ifeq ($(WITH_FUNDAMENTAL),true) -BASE_FLAGS += -DWITH_FUNDAMENTAL - PLUGIN_FILES += $(filter-out Fundamental/src/plugin.cpp,$(wildcard Fundamental/src/*.cpp)) PLUGIN_FILES += Fundamental/src/dr_wav.c # modules/types which are present in other plugins FUNDAMENTAL_CUSTOM = $(DRWAV) -endif # -------------------------------------------------------------- # GlueTheGiant diff --git a/plugins/plugins.cpp b/plugins/plugins.cpp index 468a76c..448d2c4 100644 --- a/plugins/plugins.cpp +++ b/plugins/plugins.cpp @@ -307,9 +307,7 @@ void setupSamples(); #include "FehlerFabrik/src/plugin.hpp" // Fundamental -#ifdef WITH_FUNDAMENTAL #include "Fundamental/src/plugin.hpp" -#endif // GlueTheGiant #include "GlueTheGiant/src/plugin.hpp" @@ -707,9 +705,7 @@ Plugin* pluginInstance__ESeries; Plugin* pluginInstance__ExpertSleepersEncoders; Plugin* pluginInstance__Extratone; Plugin* pluginInstance__FehlerFabrik; -#ifdef WITH_FUNDAMENTAL Plugin* pluginInstance__Fundamental; -#endif Plugin* pluginInstance__GlueTheGiant; Plugin* pluginInstance__GoodSheperd; Plugin* pluginInstance__GrandeModular; @@ -1589,7 +1585,6 @@ static void initStatic__FehlerFabrik() } } -#ifdef WITH_FUNDAMENTAL static void initStatic__Fundamental() { Plugin* const p = new Plugin; @@ -1598,48 +1593,38 @@ static void initStatic__Fundamental() const StaticPluginLoader spl(p, "Fundamental"); if (spl.ok()) { - p->addModel(modelVCO); - p->addModel(modelVCO2); p->addModel(modelVCF); - p->addModel(modelVCA_1); - p->addModel(modelVCA); - p->addModel(modelLFO); - p->addModel(modelLFO2); - p->addModel(modelDelay); - p->addModel(modelADSR); - p->addModel(modelMixer); - p->addModel(modelVCMixer); - p->addModel(model_8vert); - p->addModel(modelUnity); - p->addModel(modelMutes); - p->addModel(modelPulses); - p->addModel(modelScope); - p->addModel(modelSEQ3); - p->addModel(modelSequentialSwitch1); - p->addModel(modelSequentialSwitch2); - p->addModel(modelOctave); - p->addModel(modelQuantizer); - p->addModel(modelSplit); - p->addModel(modelMerge); - p->addModel(modelSum); - p->addModel(modelViz); - p->addModel(modelMidSide); - p->addModel(modelNoise); - p->addModel(modelRandom); - // show all plugins, helping those familiar with v1 Rack modules - if (json_t* const modules = json_object_get(spl.rootJ, "modules")) - { - size_t i; - json_t* v; - json_array_foreach(modules, i, v) - { - json_object_set(v, "hidden", json_false()); - } - } + // TODO + spl.removeModule("VCO"); + spl.removeModule("VCO2"); + spl.removeModule("VCA"); + spl.removeModule("VCA-1"); + spl.removeModule("LFO"); + spl.removeModule("LFO2"); + spl.removeModule("Delay"); + spl.removeModule("ADSR"); + spl.removeModule("Mixer"); + spl.removeModule("VCMixer"); + spl.removeModule("8vert"); + spl.removeModule("Unity"); + spl.removeModule("Mutes"); + spl.removeModule("Pulses"); + spl.removeModule("Scope"); + spl.removeModule("SEQ3"); + spl.removeModule("SequentialSwitch1"); + spl.removeModule("SequentialSwitch2"); + spl.removeModule("Octave"); + spl.removeModule("Quantizer"); + spl.removeModule("Split"); + spl.removeModule("Merge"); + spl.removeModule("Sum"); + spl.removeModule("Viz"); + spl.removeModule("MidSide"); + spl.removeModule("Noise"); + spl.removeModule("Random"); } } -#endif static void initStatic__GlueTheGiant() { @@ -2515,9 +2500,7 @@ void initStaticPlugins() initStatic__ExpertSleepersEncoders(); initStatic__Extratone(); initStatic__FehlerFabrik(); - #ifdef WITH_FUNDAMENTAL initStatic__Fundamental(); - #endif initStatic__GlueTheGiant(); initStatic__GoodSheperd(); initStatic__GrandeModular();