Add ZZC plugins
This commit is contained in:
parent
b1ce729dba
commit
4682417dbd
7 changed files with 64 additions and 1 deletions
|
|
@ -535,6 +535,16 @@ VALLEYAUDIO_CUSTOM_PER_FILE = TempoKnob
|
|||
|
||||
PLUGIN_FILES += $(filter-out ZetaCarinaeModules/src/plugin.cpp,$(wildcard ZetaCarinaeModules/src/*.cpp))
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# ZZC
|
||||
|
||||
PLUGIN_FILES += $(filter-out ZZC/src/ZZC.cpp,$(wildcard ZZC/src/*.cpp))
|
||||
PLUGIN_FILES += ZZC/src/dsp/Wavetable.cpp
|
||||
PLUGIN_FILES += ZZC/src/filetypes/WavSupport.cpp
|
||||
|
||||
# modules/types which are present in other plugins
|
||||
ZZC_CUSTOM = Clock LowFrequencyOscillator
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
||||
endif # !NOPLUGINS
|
||||
|
|
@ -960,6 +970,13 @@ $(BUILD_DIR)/ZetaCarinaeModules/%.cpp.o: ZetaCarinaeModules/%.cpp
|
|||
$(foreach m,$(ZETACARINAE_CUSTOM),$(call custom_module_names,$(m),ZetaCarinae)) \
|
||||
-DpluginInstance=pluginInstance__ZetaCarinaeModules
|
||||
|
||||
$(BUILD_DIR)/ZZC/%.cpp.o: ZZC/%.cpp
|
||||
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||
@echo "Compiling $<"
|
||||
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
|
||||
$(foreach m,$(ZZC_CUSTOM),$(call custom_module_names,$(m),ZZC)) \
|
||||
-DpluginInstance=pluginInstance__ZZC
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
||||
-include $(PLUGIN_OBJS:%.o=%.d)
|
||||
|
|
|
|||
1
plugins/ZZC
Submodule
1
plugins/ZZC
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit cb151afd226d9d544b8872cb5cb7d3713fc18e00
|
||||
|
|
@ -295,6 +295,14 @@ extern Model *modelMaude_221;
|
|||
// ZetaCarinaeModules
|
||||
#include "ZetaCarinaeModules/src/plugin.hpp"
|
||||
|
||||
// ZZC
|
||||
#define DISPLAYS_H
|
||||
#define ZZC_SHARED_H
|
||||
#define ZZC_WIDGETS_H
|
||||
#define modelClock modelZZCClock
|
||||
#include "ZZC/src/ZZC.hpp"
|
||||
#undef modelClock
|
||||
|
||||
#endif // NOPLUGINS
|
||||
|
||||
// stuff that reads config files, we dont want that
|
||||
|
|
@ -328,6 +336,7 @@ extern Plugin* pluginInstance__mscHack;
|
|||
Plugin* pluginInstance__rackwindows;
|
||||
Plugin* pluginInstance__ValleyAudio;
|
||||
Plugin* pluginInstance__ZetaCarinaeModules;
|
||||
Plugin* pluginInstance__ZZC;
|
||||
#endif // NOPLUGINS
|
||||
|
||||
namespace rack {
|
||||
|
|
@ -1218,6 +1227,28 @@ static void initStatic__ZetaCarinaeModules()
|
|||
p->addModel(modelFirefly);
|
||||
}
|
||||
}
|
||||
|
||||
static void initStatic__ZZC()
|
||||
{
|
||||
Plugin* p = new Plugin;
|
||||
pluginInstance__ZZC = p;
|
||||
|
||||
const StaticPluginLoader spl(p, "ZZC");
|
||||
if (spl.ok())
|
||||
{
|
||||
#define modelClock modelZZCClock
|
||||
p->addModel(modelClock);
|
||||
p->addModel(modelDivider);
|
||||
p->addModel(modelFN3);
|
||||
p->addModel(modelSCVCA);
|
||||
p->addModel(modelSH8);
|
||||
p->addModel(modelSRC);
|
||||
p->addModel(modelDiv);
|
||||
p->addModel(modelDivExp);
|
||||
p->addModel(modelPolygate);
|
||||
#undef modelClock
|
||||
}
|
||||
}
|
||||
#endif // NOPLUGINS
|
||||
|
||||
void initStaticPlugins()
|
||||
|
|
@ -1245,6 +1276,7 @@ void initStaticPlugins()
|
|||
initStatic__rackwindows();
|
||||
initStatic__ValleyAudio();
|
||||
initStatic__ZetaCarinaeModules();
|
||||
initStatic__ZZC();
|
||||
#endif // NOPLUGINS
|
||||
}
|
||||
|
||||
|
|
|
|||
1
plugins/res/ZZC
Symbolic link
1
plugins/res/ZZC
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../ZZC/res
|
||||
Loading…
Add table
Add a link
Reference in a new issue