Skip to content

Commit

Permalink
first basics for adding 4ms
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Nov 26, 2024
1 parent d926c0b commit fda3e7e
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,6 @@
path = plugins/admiral
url = https://github.com/wapiflapi/admiral.git

[submodule "plugins/4ms"]
path = plugins/4ms
url = https://github.com/4ms/4ms-vcv.git
1 change: 1 addition & 0 deletions plugins/4ms
Submodule 4ms added at a506a9
16 changes: 16 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ FUNDAMENTAL_CUSTOM = $(DRWAV)

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

# --------------------------------------------------------------
# 4ms

PLUGIN_FILES += $(filter-out 4ms/src/plugin.cc,$(wildcard 4ms/src/models/*.cc))

# --------------------------------------------------------------
# 8Mode

Expand Down Expand Up @@ -2122,6 +2127,17 @@ $(BUILD_DIR)/21kHz/%.cpp.o: 21kHz/%.cpp
$(foreach m,$(21KHZ_CUSTOM),$(call custom_module_names,$(m),21kHz)) \
-DpluginInstance=pluginInstance__21kHz

$(BUILD_DIR)/4ms/%.o: 4ms/%
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(4ms_CUSTOM),$(call custom_module_names,$(m),4ms)) \
-DpluginInstance=pluginInstance__4ms \
-I4ms/src \
-I4ms/lib \
-I4ms/lib/metamodule-core-interface \
-I4ms/lib/cpputil

$(BUILD_DIR)/8Mode/%.cpp.o: 8Mode/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
111 changes: 111 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,57 @@
// 21kHz
#include "21kHz/src/21kHz.hpp"

// 4ms
#include "4ms/src/plugin.hh"
extern Model* modelOctave;
extern Model* modelNoise;
extern Model* modelSHEV;
extern Model* modelENVVCA;
extern Model* modelDEV;
extern Model* modelFreeverb;
extern Model* modelVCAM;
extern Model* modelTapo;
extern Model* modelSISM;
extern Model* modelSH;
extern Model* modelSCM;
extern Model* modelRCD;
extern Model* modelQPLFO;
extern Model* modelQCD;
extern Model* modelPI;
extern Model* modelPEG;
extern Model* modelLPG;
extern Model* modelL4;
extern Model* modelDLD;
extern Model* modelCLKM;
extern Model* modelCLKD;
extern Model* modelVerb;
extern Model* modelSwitch41;
extern Model* modelSwitch14;
extern Model* modelSeq8;
extern Model* modelProb8;
extern Model* modelMNMX;
extern Model* modelAtvert2;
extern Model* modelBPF;
extern Model* modelComplexEG;
extern Model* modelDetune;
extern Model* modelDjembe;
extern Model* modelDrum;
extern Model* modelEnOsc;
extern Model* modelFM;
extern Model* modelFollow;
extern Model* modelGate;
extern Model* modelHPF;
extern Model* modelHubMedium;
extern Model* modelKPLS;
extern Model* modelMultiLFO;
extern Model* modelPan;
extern Model* modelPitchShift;
extern Model* modelSlew;
extern Model* modelSource;
extern Model* modelStMix;
extern Model* modelMPEG;


// 8Mode
#include "8Mode/src/8mode.hpp"

Expand Down Expand Up @@ -914,6 +965,7 @@ Plugin* pluginInstance__Cardinal;
Plugin* pluginInstance__Fundamental;
// Plugin* pluginInstance__ZamAudio;
Plugin* pluginInstance__21kHz;
Plugin* pluginInstance__4ms;
Plugin* pluginInstance__8Mode;
extern Plugin* pluginInstance__AaronStatic;
Plugin* pluginInstance__admiral;
Expand Down Expand Up @@ -1228,6 +1280,64 @@ static void initStatic__21kHz()
}
}

static void initStatic__4ms()
{
Plugin* const p = new Plugin;
pluginInstance__4ms = p;

const StaticPluginLoader spl(p, "4ms");
if (spl.ok())
{
p->addModel(modelOctave);
p->addModel(modelNoise);
p->addModel(modelSHEV);
p->addModel(modelENVVCA);
p->addModel(modelDEV);
p->addModel(modelFreeverb);
p->addModel(modelVCAM);
p->addModel(modelTapo);
p->addModel(modelSISM);
p->addModel(modelSH);
p->addModel(modelSCM);
p->addModel(modelRCD);
p->addModel(modelQPLFO);
p->addModel(modelQCD);
p->addModel(modelPI);
p->addModel(modelPEG);
p->addModel(modelLPG);
p->addModel(modelL4);
p->addModel(modelDLD);
p->addModel(modelCLKM);
p->addModel(modelCLKD);
p->addModel(modelVerb);
p->addModel(modelSwitch41);
p->addModel(modelSwitch14);
p->addModel(modelSeq8);
p->addModel(modelProb8);
p->addModel(modelMNMX);
p->addModel(modelAtvert2);
p->addModel(modelBPF);
p->addModel(modelComplexEG);
p->addModel(modelDetune);
p->addModel(modelDjembe);
p->addModel(modelDrum);
p->addModel(modelEnOsc);
p->addModel(modelFM);
p->addModel(modelFollow);
p->addModel(modelGate);
p->addModel(modelHPF);
p->addModel(modelHubMedium);
p->addModel(modelKPLS);
p->addModel(modelMultiLFO);
p->addModel(modelPan);
p->addModel(modelPitchShift);
p->addModel(modelSlew);
p->addModel(modelSource);
p->addModel(modelStMix);
p->addModel(modelMPEG);
}
}

static void initStatic__8Mode()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3511,6 +3621,7 @@ void initStaticPlugins()
initStatic__Fundamental();
// initStatic__ZamAudio();
initStatic__21kHz();
initStatic__4ms();
initStatic__8Mode();
initStatic__AaronStatic();
initStatic__admiral();
Expand Down

0 comments on commit fda3e7e

Please sign in to comment.