Browse Source

Add SynthKit.

pull/738/head
rl2939 1 year ago
parent
commit
b5a001f0c4
6 changed files with 49 additions and 0 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      README.md
  3. +1
    -0
      docs/LICENSES.md
  4. +14
    -0
      plugins/Makefile
  5. +1
    -0
      plugins/SynthKit
  6. +29
    -0
      plugins/plugins.cpp

+ 3
- 0
.gitmodules View File

@@ -266,3 +266,6 @@
[submodule "plugins/eightfold"]
path = plugins/eightfold
url = https://github.com/scanner-darkly/eightfold.git
[submodule "plugins/SynthKit"]
path = plugins/SynthKit
url = https://github.com/SVModular/SynthKit.git

+ 1
- 0
README.md View File

@@ -196,6 +196,7 @@ At the moment the following 3rd-party modules are provided:
- [Starling Via](https://github.com/starlingcode/Via-for-Rack)
- [Stoermelder Pack-One](https://github.com/stoermelder/vcvrack-packone)
- [Surge XT](https://github.com/surge-synthesizer/surge-rack)
- [SynthKit](https://github.com/SVModular/SynthKit)
- [unless_modules](https://gitlab.com/unlessgames/unless_modules)
- [Valley](https://github.com/ValleyAudio/ValleyRackFree)
- [Voxglitch](https://github.com/clone45/voxglitch)


+ 1
- 0
docs/LICENSES.md View File

@@ -90,6 +90,7 @@ Below follows a list of all code licenses used in Cardinal and linked submodules
| stocaudio | GPL-3.0-or-later | |
| Stoermelder Pack-One | GPL-3.0-or-later | |
| Surge XT | GPL-3.0-or-later | |
| SynthKit | CC0-1.0 | |
| unless_modules | GPL-3.0-or-later | |
| Valley | GPL-3.0-or-later | |
| Voxglitch | GPL-3.0-or-later | |


+ 14
- 0
plugins/Makefile View File

@@ -1185,6 +1185,13 @@ MINIPLUGIN_FILES += surgext/src/XTModuleWidget.cpp
MINIPLUGIN_FILES += surgext/src/XTStyle.cpp
MINIPLUGIN_FILES += surgext-helper/surgext-helper.cpp

# --------------------------------------------------------------
# SynthKit

PLUGIN_FILES += $(filter-out SynthKit/src/SynthKit.cpp,$(wildcard SynthKit/src/*.cpp))
PLUGIN_FILES += $(wildcard SynthKit/src/controller/*.cpp)
PLUGIN_FILES += $(wildcard SynthKit/src/view/*.cpp)

# --------------------------------------------------------------
# unless_modules

@@ -2824,6 +2831,13 @@ $(BUILD_DIR)/surgext%.cpp.o: surgext%.cpp
$(foreach m,$(SURGEXT_CUSTOM),$(call custom_module_names,$(m),surgext)) \
-DpluginInstance=pluginInstance__surgext

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

$(BUILD_DIR)/unless_modules/%.cpp.o: unless_modules/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"


+ 1
- 0
plugins/SynthKit

@@ -0,0 +1 @@
Subproject commit 0d4aba35a9a3b0988c3e66172ddfa964ada3dbbe

+ 29
- 0
plugins/plugins.cpp View File

@@ -874,6 +874,9 @@ void StoermelderSettings::readFromJson() {}
void surgext_rack_initialize();
void surgext_rack_update_theme();

// SynthKit
#include "SynthKit/src/SynthKit.hpp"

// unless_modules
#include "unless_modules/src/unless.hpp"

@@ -995,6 +998,7 @@ Plugin* pluginInstance__StarlingVia;
Plugin* pluginInstance__stocaudio;
extern Plugin* pluginInstance__stoermelder_p1;
Plugin* pluginInstance__surgext;
Plugin* pluginInstance__SynthKit;
Plugin* pluginInstance__unless_modules;
Plugin* pluginInstance__ValleyAudio;
Plugin* pluginInstance__Voxglitch;
@@ -3389,6 +3393,30 @@ static void initStatic__surgext()
}
}

static void initStatic__SynthKit()
{
Plugin* const p = new Plugin;
pluginInstance__SynthKit = p;

const StaticPluginLoader spl(p, "SynthKit");
if (spl.ok())
{
p->addModel(modelAddition);
p->addModel(modelSubtraction);
p->addModel(modelAnd);
p->addModel(modelOr);
p->addModel(modelM1x8);
p->addModel(modelM1x8CV);
p->addModel(modelClockDivider);
p->addModel(modelRotatingClockDivider);
p->addModel(modelRotatingClockDivider2);
p->addModel(modelPrimeClockDivider);
p->addModel(modelFibonacciClockDivider);
p->addModel(modelSeq4);
p->addModel(modelSeq8);
}
}

static void initStatic__unless_modules()
{
Plugin* const p = new Plugin;
@@ -3607,6 +3635,7 @@ void initStaticPlugins()
initStatic__stocaudio();
initStatic__stoermelder_p1();
initStatic__surgext();
initStatic__SynthKit();
initStatic__unless_modules();
initStatic__ValleyAudio();
initStatic__Voxglitch();


Loading…
Cancel
Save