Browse Source

Add ML Modules

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.03
falkTX 3 years ago
parent
commit
135715871d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
6 changed files with 114 additions and 5 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      README.md
  3. +4
    -0
      docs/LICENSES.md
  4. +1
    -0
      plugins/ML_modules
  5. +16
    -0
      plugins/Makefile
  6. +89
    -5
      plugins/plugins.cpp

+ 3
- 0
.gitmodules View File

@@ -148,3 +148,6 @@
[submodule "plugins/HamptonHarmonics"]
path = plugins/HamptonHarmonics
url = https://gitlab.com/hampton-harmonics/hampton-harmonics-modules.git
[submodule "plugins/ML_modules"]
path = plugins/ML_modules
url = https://github.com/martin-lueders/ML_modules.git

+ 1
- 0
README.md View File

@@ -134,6 +134,7 @@ At the moment the following 3rd-party modules are provided:
- Lomas Modules
- Lyrae Modules
- MindMeld
- ML Modules
- Mockba Modular
- Mog
- mscHack


+ 4
- 0
docs/LICENSES.md View File

@@ -45,6 +45,7 @@ Bellow follows a list of all code licenses used in Cardinal and linked submodule
| Lomas Modules | GPL-3.0-or-later | |
| Lyrae Modules | GPL-3.0-or-later | |
| MindMeld | GPL-3.0-or-later | |
| ML Modules | BSD-3-Clause | |
| Mockba Modular | MIT | |
| Mog | CC0-1.0 | |
| mscHack | BSD-3-Clause | |
@@ -136,6 +137,9 @@ Below is a list of artwork licenses from plugins
| LyraeModules/* | CC-BY-NC-SA-4.0 | |
| MindMeld/* | CC-BY-NC-ND-4.0 | |
| MindMeld/fonts/RobotoCondensed-*.ttf | Apache-2.0 | |
| ML_modules/* | BSD-3-Clause | No artwork specific license provided |
| ML_modules/DejaVuSansMono.ttf | Bitstream-Vera | |
| ML_modules/Segment7Standard.ttf | OFL-1.1-RFN | |
| MockbaModular/* | MIT | No artwork specific license provided |
| Mog/* | CC0-1.0 | |
| Mog/components/* | CC-BY-NC-4.0 | |


+ 1
- 0
plugins/ML_modules

@@ -0,0 +1 @@
Subproject commit 788ceb73cfabddaff7245b0df072b0e22a19b360

+ 16
- 0
plugins/Makefile View File

@@ -604,6 +604,15 @@ PLUGIN_FILES += $(wildcard MindMeldModular/src/Utilities/*.cpp)
# modules/types which are present in other plugins
MINDMELD_CUSTOM = printNote

# --------------------------------------------------------------
# ML_modules

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

# modules/types which are present in other plugins
ML_CUSTOM = Quant Quantizer QuantizerWidget SH8 allpass comb revmodel

# --------------------------------------------------------------
# MockbaModular

@@ -1417,6 +1426,13 @@ $(BUILD_DIR)/MindMeldModular/%.cpp.o: MindMeldModular/%.cpp
$(foreach m,$(MINDMELD_CUSTOM),$(call custom_module_names,$(m),MindMeld)) \
-DpluginInstance=pluginInstance__MindMeld

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

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


+ 89
- 5
plugins/plugins.cpp View File

@@ -462,6 +462,44 @@ extern Model* modelBassMaster;
extern Model* modelBassMasterJr;
extern Model* modelShapeMaster;

// ML_modules
/* NOTE too much noise in original include, do this a different way
// #include "ML_modules/src/ML_modules.hpp"
*/
#define modelQuantizer modelMLQuantizer
#define modelSH8 modelMLSH8
extern Model* modelQuantizer;
extern Model* modelQuantum;
extern Model* modelTrigBuf;
extern Model* modelSeqSwitch;
extern Model* modelSeqSwitch2;
extern Model* modelShiftRegister;
extern Model* modelShiftRegister2;
extern Model* modelFreeVerb;
extern Model* modelSum8;
extern Model* modelSum8mk2;
extern Model* modelSum8mk3;
extern Model* modelSH8;
extern Model* modelConstants;
extern Model* modelCounter;
extern Model* modelTrigDelay;
extern Model* modelBPMdetect;
extern Model* modelVoltMeter;
extern Model* modelOctaFlop;
extern Model* modelOctaTrig;
extern Model* modelOctaSwitch;
extern Model* modelTrigSwitch;
extern Model* modelTrigSwitch2;
extern Model* modelTrigSwitch3;
extern Model* modelTrigSwitch3_2;
extern Model* modelOctaPlus;
extern Model* modelOctaTimes;
extern Model* modelCloner;
extern Model* modelPolySplitter;
extern Model* modelArpeggiator;
#undef modelQuantizer
#undef modelSH8

// MockbaModular
#define modelBlank modelMockbaModularBlank
#define modelComparator modelMockbaModularComparator
@@ -613,6 +651,7 @@ Plugin* pluginInstance__LittleUtils;
Plugin* pluginInstance__Lomas;
Plugin* pluginInstance__Lyrae;
extern Plugin* pluginInstance__MindMeld;
Plugin* pluginInstance__ML;
Plugin* pluginInstance__MockbaModular;
Plugin* pluginInstance__Mog;
extern Plugin* pluginInstance__mscHack;
@@ -1788,16 +1827,47 @@ static void initStatic__MindMeld()
}
}

static void initStatic__Mog()
static void initStatic__ML()
{
Plugin* const p = new Plugin;
pluginInstance__Mog = p;
pluginInstance__ML = p;

const StaticPluginLoader spl(p, "Mog");
const StaticPluginLoader spl(p, "ML_modules");
if (spl.ok())
{
p->addModel(modelNetwork);
p->addModel(modelNexus);
#define modelQuantizer modelMLQuantizer
#define modelSH8 modelMLSH8
p->addModel(modelQuantizer);
p->addModel(modelQuantum);
p->addModel(modelTrigBuf);
p->addModel(modelSeqSwitch);
p->addModel(modelSeqSwitch2);
p->addModel(modelShiftRegister);
p->addModel(modelShiftRegister2);
p->addModel(modelFreeVerb);
p->addModel(modelSum8);
p->addModel(modelSum8mk2);
p->addModel(modelSum8mk3);
p->addModel(modelSH8);
p->addModel(modelConstants);
p->addModel(modelCounter);
p->addModel(modelTrigDelay);
p->addModel(modelBPMdetect);
p->addModel(modelVoltMeter);
p->addModel(modelOctaFlop);
p->addModel(modelOctaTrig);
p->addModel(modelOctaSwitch);
p->addModel(modelTrigSwitch);
p->addModel(modelTrigSwitch2);
p->addModel(modelTrigSwitch3);
p->addModel(modelTrigSwitch3_2);
p->addModel(modelOctaPlus);
p->addModel(modelOctaTimes);
p->addModel(modelCloner);
p->addModel(modelPolySplitter);
p->addModel(modelArpeggiator);
#undef modelQuantizer
#undef modelSH8
}
}

@@ -1860,6 +1930,19 @@ static void initStatic__MockbaModular()
}
}

static void initStatic__Mog()
{
Plugin* const p = new Plugin;
pluginInstance__Mog = p;

const StaticPluginLoader spl(p, "Mog");
if (spl.ok())
{
p->addModel(modelNetwork);
p->addModel(modelNexus);
}
}

static void initStatic__mscHack()
{
Plugin* const p = new Plugin;
@@ -2121,6 +2204,7 @@ void initStaticPlugins()
initStatic__Lomas();
initStatic__Lyrae();
initStatic__MindMeld();
initStatic__ML();
initStatic__MockbaModular();
initStatic__Mog();
initStatic__mscHack();


Loading…
Cancel
Save