Feature/add aaron static (#179)
* preliminary Aaron Static work * build fix (override, needs work); color invert * put color exception somewhere else
This commit is contained in:
parent
e42d689cd3
commit
1c7e2f4386
7 changed files with 51 additions and 0 deletions
1
plugins/AaronStatic
Submodule
1
plugins/AaronStatic
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 4ace0a1789c577ee4eb12dc03da5271f80598d62
|
|
@ -238,6 +238,11 @@ PLUGIN_FILES += $(filter-out 8Mode/src/plugin.cpp,$(wildcard 8Mode/src/*.cpp))
|
|||
|
||||
PLUGIN_FILES += $(filter-out Algoritmarte/src/plugin.cpp,$(wildcard Algoritmarte/src/*.cpp))
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# Aaron Static
|
||||
|
||||
PLUGIN_FILES += $(wildcard AaronStatic/src/*.cpp)
|
||||
|
||||
# --------------------------------------------------------------
|
||||
# AmalgamatedHarmonics
|
||||
|
||||
|
@ -1151,6 +1156,14 @@ $(BUILD_DIR)/8Mode/%.cpp.o: 8Mode/%.cpp
|
|||
$(foreach m,$(8MODE_CUSTOM),$(call custom_module_names,$(m),8Mode)) \
|
||||
-DpluginInstance=pluginInstance__8Mode
|
||||
|
||||
$(BUILD_DIR)/AaronStatic/%.cpp.o: AaronStatic/%.cpp
|
||||
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||
@echo "Compiling $<"
|
||||
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
|
||||
$(foreach m,$(AARONSTATIC_CUSTOM),$(call custom_module_names,$(m),AaronStatic)) \
|
||||
-DpluginInstance=pluginInstance__AaronStatic \
|
||||
-Dinit=init__AaronStatic
|
||||
|
||||
$(BUILD_DIR)/Algoritmarte/%.cpp.o: Algoritmarte/%.cpp
|
||||
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
|
||||
@echo "Compiling $<"
|
||||
|
|
|
@ -30,6 +30,13 @@
|
|||
// 8Mode
|
||||
#include "8Mode/src/8mode.hpp"
|
||||
|
||||
// Aaron Static
|
||||
#include "AaronStatic/src/plugin.hpp"
|
||||
// Nasty override of this required function for now:
|
||||
NVGcolor prepareDisplay(NVGcontext *vg, Rect *box, int fontSize) {
|
||||
return nvgRGB(0xaf, 0xd2, 0x2c);
|
||||
}
|
||||
|
||||
// Algoritmarte
|
||||
#include "Algoritmarte/src/plugin.hpp"
|
||||
|
||||
|
@ -646,6 +653,7 @@ Plugin* pluginInstance__Cardinal;
|
|||
#ifndef NOPLUGINS
|
||||
Plugin* pluginInstance__21kHz;
|
||||
Plugin* pluginInstance__8Mode;
|
||||
Plugin* pluginInstance__AaronStatic;
|
||||
Plugin* pluginInstance__Algoritmarte;
|
||||
Plugin* pluginInstance__AmalgamatedHarmonics;
|
||||
Plugin* pluginInstance__AnimatedCircuits;
|
||||
|
@ -867,6 +875,21 @@ static void initStatic__8Mode()
|
|||
}
|
||||
}
|
||||
|
||||
static void initStatic__AaronStatic()
|
||||
{
|
||||
Plugin* const p = new Plugin;
|
||||
pluginInstance__AaronStatic = p;
|
||||
|
||||
const StaticPluginLoader spl(p, "AaronStatic");
|
||||
if (spl.ok())
|
||||
{
|
||||
p->addModel(modelChordCV);
|
||||
p->addModel(modelScaleCV);
|
||||
p->addModel(modelRandomNoteCV);
|
||||
p->addModel(modelDiatonicCV);
|
||||
}
|
||||
}
|
||||
|
||||
static void initStatic__Algoritmarte()
|
||||
{
|
||||
Plugin* const p = new Plugin;
|
||||
|
@ -2340,6 +2363,7 @@ void initStaticPlugins()
|
|||
#ifndef NOPLUGINS
|
||||
initStatic__21kHz();
|
||||
initStatic__8Mode();
|
||||
initStatic__AaronStatic();
|
||||
initStatic__Algoritmarte();
|
||||
initStatic__AmalgamatedHarmonics();
|
||||
initStatic__AnimatedCircuits();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue