Skip to content

Commit

Permalink
add NB_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dingodoppelt committed Sep 13, 2023
1 parent 6b59449 commit 219b2f7
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 22 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: build

on: [push, pull_request]
on:
push:
tags:
- 'build_*'

env:
CACHE_VERSION: 4
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/irc.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,7 @@
[submodule "plugins/EnigmaCurry"]
path = plugins/EnigmaCurry
url = https://github.com/EnigmaCurry/EnigmaCurry-vcv-pack.git
[submodule "plugins/NB"]
path = plugins/NB
url = https://github.com/dingodoppelt/NB.git
branch = release
Binary file not shown.
Binary file not shown.
Binary file added patches/examples/NB_-_PitchCV-HoldSax.vcv
Binary file not shown.
12 changes: 12 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,11 @@ MSM_CUSTOM = ADSR BlankPanel Delay LFO LowFrequencyOscillator Mult Noise OP VCA

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

# --------------------------------------------------------------
# NB

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

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

Expand Down Expand Up @@ -2517,6 +2522,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)/NB/%.cpp.o: NB/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(NB_CUSTOM),$(call custom_module_names,$(m),NB)) \
-DpluginInstance=pluginInstance__NB

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

// NB
#include "NB/src/plugin.hpp"

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

Expand Down Expand Up @@ -850,6 +853,7 @@ Plugin* pluginInstance__Mog;
extern Plugin* pluginInstance__mscHack;
Plugin* pluginInstance__MSM;
Plugin* pluginInstance__myth_modules;
Plugin* pluginInstance__NB;
Plugin* pluginInstance__nonlinearcircuits;
Plugin* pluginInstance__Orbits;
Plugin* pluginInstance__ParableInstruments;
Expand Down Expand Up @@ -2588,6 +2592,21 @@ static void initStatic__myth_modules()
}
}

static void initStatic__NB()
{
Plugin* const p = new Plugin;
pluginInstance__NB = p;

const StaticPluginLoader spl(p, "NB");
if (spl.ok())
{
p->addModel(modelSoftclip);
p->addModel(modelMoggle);
p->addModel(modelPolyfotz);
p->addModel(modelVarTriSaw);
}
}

static void initStatic__nonlinearcircuits()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3130,6 +3149,7 @@ void initStaticPlugins()
initStatic__mscHack();
initStatic__MSM();
initStatic__myth_modules();
initStatic__NB();
initStatic__nonlinearcircuits();
initStatic__Orbits();
initStatic__ParableInstruments();
Expand Down

0 comments on commit 219b2f7

Please sign in to comment.