Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nocturnal Encoder Modules. #748

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,6 @@
[submodule "plugins/admiral"]
path = plugins/admiral
url = https://github.com/wapiflapi/admiral.git

[submodule "plugins/NocturnalEncoder"]
path = plugins/NocturnalEncoder
url = https://github.com/djpeterso23662/NocturnalEncoder.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ At the moment the following 3rd-party modules are provided:
- [MSM](https://github.com/netboy3/MSM-vcvrack-plugin)
- [MUS-X](https://github.com/Jojosito/MUS-X)
- [Myth](https://github.com/Ahineya/vcv-myth-plugin)
- [Nocturnal Encoder](https://github.com/djpeterso23662/NocturnalEncoder)
- [Nonlinear Circuits](https://github.com/mhetrick/nonlinearcircuits)
- [Orbits](https://github.com/RareBreeds/Orbits)
- [Parable Instruments](https://github.com/adbrant/ArableInstruments)
Expand Down
2 changes: 2 additions & 0 deletions docs/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Below follows a list of all code licenses used in Cardinal and linked submodules
| MSM | MIT | Repo's [LICENSE-dist.md](https://github.com/netboy3/MSM-vcvrack-plugin/issues/10) includes wrong information |
| MUS-X | GPL-3.0-or-later | |
| Myth | GPL-3.0-or-later | |
| NocturnalEncoder | BSD-3-Clause | |
| Nonlinear Circuits | CC0-1.0 | |
| Orbits | GPL-3.0-or-later | |
| Parable Instruments | GPL-3.0-or-later | |
Expand Down Expand Up @@ -231,6 +232,7 @@ Below is a list of artwork licenses from plugins
| MSM/Fonts/Sudo.ttf | OFL-1.1-no-RFN | |
| MUS-X/* | GPL-3.0-or-later | No artwork specific license provided |
| Myth/* | GPL-3.0-or-later | No artwork specific license provided |
| NocturnalEncoder/* | BSD-3-Clause | No artwork specific license provided |
| nonlinearcircuits/* | CC0-1.0 | No artwork specific license provided |
| nonlinearcircuits/Audiowide-Regular.ttf | OFL-1.1-RFN | |
| Orbits/* | CC-BY-NC-ND-4.0 | |
Expand Down
12 changes: 12 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,11 @@ PLUGIN_FILES += $(filter-out MUS-X/src/plugin.cpp,$(wildcard MUS-X/src/*.cpp))

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

# --------------------------------------------------------------
# Nocturnal Encoder

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

# --------------------------------------------------------------
# Nonlinear Circuits

Expand Down Expand Up @@ -2653,6 +2658,13 @@ $(BUILD_DIR)/myth-modules/%.cpp.o: myth-modules/%.cpp
$(foreach m,$(MYTH_MODULES_CUSTOM),$(call custom_module_names,$(m),myth_modules)) \
-DpluginInstance=pluginInstance__myth_modules

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

$(BUILD_DIR)/nonlinearcircuits/%.cpp.o: nonlinearcircuits/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
1 change: 1 addition & 0 deletions plugins/NocturnalEncoder
Submodule NocturnalEncoder added at 700823
17 changes: 17 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,9 @@ extern Model* modelBlankPanel;
// myth-modules
#include "myth-modules/src/plugin.hpp"

// Nocturnal Encoder
#include "NocturnalEncoder/src/plugin.hpp"

// Nonlinear Circuits
#include "nonlinearcircuits/src/NLC.hpp"

Expand Down Expand Up @@ -970,6 +973,7 @@ extern Plugin* pluginInstance__mscHack;
Plugin* pluginInstance__MSM;
Plugin* pluginInstance__MUS_X;
Plugin* pluginInstance__myth_modules;
Plugin* pluginInstance__NocturnalEncoder;
Plugin* pluginInstance__nonlinearcircuits;
Plugin* pluginInstance__Orbits;
Plugin* pluginInstance__ParableInstruments;
Expand Down Expand Up @@ -2919,6 +2923,18 @@ static void initStatic__myth_modules()
}
}

static void initStatic__NocturnalEncoder()
{
Plugin* const p = new Plugin;
pluginInstance__NocturnalEncoder = p;

const StaticPluginLoader spl(p, "NocturnalEncoder");
if (spl.ok())
{
p->addModel(modelAMDecoder);
p->addModel(modelAMEncoder);
}
}
static void initStatic__nonlinearcircuits()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3557,6 +3573,7 @@ void initStaticPlugins()
initStatic__MSM();
initStatic__MUS_X();
initStatic__myth_modules();
initStatic__NocturnalEncoder();
initStatic__nonlinearcircuits();
initStatic__Orbits();
initStatic__ParableInstruments();
Expand Down
Loading