Skip to content

Commit

Permalink
Add the admiral modules. (#730)
Browse files Browse the repository at this point in the history
* Added Admiral to gitmodules

* Added Admiral to Makefile

* Add Admiral to plugins.cpp.

* README.md

* Add Admiral to README.md

* Add Admiral to DIFFERENCES.md

* Add admiral to LICENSES.md

* Added the admiral plugin.
  • Loading branch information
rl2939 authored Nov 12, 2024
1 parent 1fe04d7 commit 546e60c
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,6 @@
[submodule "plugins/rcm-modules"]
path = plugins/rcm-modules
url = https://github.com/Rcomian/rcm-modules.git
[submodule "plugins/admiral"]
path = plugins/admiral
url = https://github.com/wapiflapi/admiral.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ At the moment the following 3rd-party modules are provided:
- [21kHz](https://github.com/netboy3/21kHz-rack-plugins)
- [8Mode](https://github.com/8Mode/8Mode-VCV_Modules)
- [Aaron Static](https://github.com/aaronstatic/AaronStatic_modules)
- [Admiral](https://github.com/wapiflapi/admiral)
- [alef's bits](https://github.com/alefnull/alefsbits)
- [AlgoritmArte](https://github.com/algoritmarte/AlgoritmarteVCVPlugin)
- [Amalgamated Harmonics](https://github.com/jhoar/AmalgamatedHarmonics)
Expand Down
1 change: 1 addition & 0 deletions docs/DIFFERENCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Bellow follows a list of features comparing the official plugin to Cardinal.

Additionally, Cardinal contains the following built-in modules not present in the official plugin or standalone:

* Admiral (never updated to v2)
* Aria Salvatrice modules (except Arcane related modules, due to their online requirement)
* Arable Instruments and Parable Instruments (never updated to v2)
* Mog (never updated to v2)
Expand Down
1 change: 1 addition & 0 deletions docs/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Below follows a list of all code licenses used in Cardinal and linked submodules
| 21kHz | MIT | |
| 8Mode | BSD-3-Clause | |
| Aaron Static | MIT | |
| admiral | MIT | |
| alef's bits | GPL-3.0-or-later | |
| AlgoritmArte | GPL-3.0-or-later | |
| Amalgamated Harmonics | BSD-3-Clause | |
Expand Down
12 changes: 12 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ PLUGIN_FILES += $(wildcard AaronStatic/src/*.cpp)
# modules/types which are present in other plugins
AARONSTATIC_CUSTOM = RefreshCounter

# --------------------------------------------------------------
# Admiral

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

# --------------------------------------------------------------
# AmalgamatedHarmonics

Expand Down Expand Up @@ -2129,6 +2134,13 @@ $(BUILD_DIR)/AaronStatic/%.cpp.o: AaronStatic/%.cpp
-DpluginInstance=pluginInstance__AaronStatic \
-Dinit=init__AaronStatic

$(BUILD_DIR)/admiral/%.cpp.o: admiral/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(ADMIRAL_CUSTOM),$(call custom_module_names,$(m),admiral)) \
-DpluginInstance=pluginInstance__admiral

$(BUILD_DIR)/alefsbits/%.cpp.o: alefsbits/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
1 change: 1 addition & 0 deletions plugins/admiral
Submodule admiral added at 2885b7
26 changes: 26 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
// Aaron Static
#include "AaronStatic/src/plugin.hpp"

// Admiral
/* NOTE too much noise in original include, do this a different way
// #include "admiral/src/plugin.hpp"
*/
extern Model* modelWatches;
extern Model* modelShifts;
extern Model* modelTables;
extern Model* modelDivisions;

// Alef's Bits
#define modelSteps modelalefsbitsSteps
#define modelLogic modelalefsbitsLogic
Expand Down Expand Up @@ -907,6 +916,7 @@ Plugin* pluginInstance__Fundamental;
Plugin* pluginInstance__21kHz;
Plugin* pluginInstance__8Mode;
extern Plugin* pluginInstance__AaronStatic;
Plugin* pluginInstance__admiral;
Plugin* pluginInstance__alefsbits;
Plugin* pluginInstance__Algoritmarte;
Plugin* pluginInstance__AmalgamatedHarmonics;
Expand Down Expand Up @@ -1245,6 +1255,21 @@ static void initStatic__AaronStatic()
}
}

static void initStatic__admiral()
{
Plugin* const p = new Plugin;
pluginInstance__admiral = p;

const StaticPluginLoader spl(p, "admiral");
if (spl.ok())
{
p->addModel(modelWatches);
p->addModel(modelShifts);
p->addModel(modelTables);
p->addModel(modelDivisions);
}
}

static void initStatic__alefsbits()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3474,6 +3499,7 @@ void initStaticPlugins()
initStatic__21kHz();
initStatic__8Mode();
initStatic__AaronStatic();
initStatic__admiral();
initStatic__alefsbits();
initStatic__Algoritmarte();
initStatic__AmalgamatedHarmonics();
Expand Down

0 comments on commit 546e60c

Please sign in to comment.