Skip to content

Commit

Permalink
Add Geodesics modules
Browse files Browse the repository at this point in the history
Adding them was straightforward. A few symbols resulted in duplicates
when linking, hence the extra "-D" hackery in the plugins Makefile.
  • Loading branch information
jypma committed Jan 11, 2022
1 parent 9d7bd15 commit 7520c14
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@
[submodule "plugins/ExpertSleepers-Encoders"]
path = plugins/ExpertSleepers-Encoders
url = https://github.com/expertsleepersltd/vcvrack-encoders.git
[submodule "plugins/Geodesics"]
path = plugins/Geodesics
url = git@github.com:MarcBoule/Geodesics.git
1 change: 1 addition & 0 deletions doc/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Bellow follows a list of all code licenses used in Cardinal and linked submodule
| Extratone | GPL-3.0-or-later | |
| Fehler Fabrik | GPL-3.0-or-later | |
| Fundamental | GPL-3.0-or-later | |
| Geodesics | GPL-3.0-or-later | |
| Glue the Giant | GPL-3.0-or-later | |
| Grande | GPL-3.0-or-later | |
| HetrickCV | CC0-1.0 | |
Expand Down
1 change: 1 addition & 0 deletions plugins/Geodesics
Submodule Geodesics added at ae163f
15 changes: 15 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ PLUGIN_FILES += Fundamental/src/dr_wav.c
# modules/types which are present in other plugins
FUNDAMENTAL_CUSTOM = $(DRWAV)

# --------------------------------------------------------------
# Geodesics

PLUGIN_FILES += $(filter-out Geodesics/src/plugin.cpp,$(wildcard Geodesics/src/*.cpp))

# --------------------------------------------------------------
# GlueTheGiant

Expand Down Expand Up @@ -1074,6 +1079,16 @@ $(BUILD_DIR)/Fundamental/%.cpp.o: Fundamental/%.cpp
$(foreach m,$(FUNDAMENTAL_CUSTOM),$(call custom_module_names,$(m),Fundamental)) \
-DpluginInstance=pluginInstance__Fundamental

$(BUILD_DIR)/Geodesics/%.cpp.o: Geodesics/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(GEODESICS_CUSTOM),$(call custom_module_names,$(m),Geodesics)) \
-DpluginInstance=pluginInstance__Geodesics \
-DsaveDarkAsDefault=saveDarkAsDefault__Geodesics \
-DisDark=isDark__Geodesics \
-Dinit=init__Geodesics

$(BUILD_DIR)/GlueTheGiant/%.cpp.o: GlueTheGiant/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
26 changes: 26 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ void setupSamples();
// Fundamental
#include "Fundamental/src/plugin.hpp"

// Geodesics
#include "Geodesics/src/Geodesics.hpp"

// GlueTheGiant
#include "GlueTheGiant/src/plugin.hpp"
bool audition_mixer = false;
Expand Down Expand Up @@ -516,6 +519,7 @@ Plugin* pluginInstance__ExpertSleepersEncoders;
Plugin* pluginInstance__Extratone;
Plugin* pluginInstance__FehlerFabrik;
Plugin* pluginInstance__Fundamental;
extern Plugin* pluginInstance__Geodesics;
Plugin* pluginInstance__GrandeModular;
Plugin* pluginInstance__GlueTheGiant;
Plugin* pluginInstance__HetrickCV;
Expand Down Expand Up @@ -1381,6 +1385,27 @@ static void initStatic__Fundamental()
}
}

static void initStatic__Geodesics()
{
Plugin* const p = new Plugin;
pluginInstance__Geodesics = p;

const StaticPluginLoader spl(p, "Geodesics");
if (spl.ok())
{
p->addModel(modelBlackHoles);
p->addModel(modelPulsars);
p->addModel(modelBranes);
p->addModel(modelIons);
p->addModel(modelEntropia);
p->addModel(modelEnergy);
p->addModel(modelTorus);
p->addModel(modelFate);
p->addModel(modelBlankLogo);
p->addModel(modelBlankInfo);
}
}

static void initStatic__GlueTheGiant()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -1895,6 +1920,7 @@ void initStaticPlugins()
initStatic__Extratone();
initStatic__FehlerFabrik();
initStatic__Fundamental();
initStatic__Geodesics();
initStatic__GlueTheGiant();
initStatic__GrandeModular();
initStatic__HetrickCV();
Expand Down
3 changes: 0 additions & 3 deletions plugins/todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ https://github.com/squinkylabs/SquinkyVCV

LindenbergResearch 43959.0 (not opensource?)

Geodesics 42761.0
https://github.com/MarcBoule/Geodesics

Alikins 41798.0
https://github.com/alikins/Alikins-rack-plugins

Expand Down

0 comments on commit 7520c14

Please sign in to comment.