Skip to content

Commit

Permalink
preliminary work to add Biset
Browse files Browse the repository at this point in the history
  • Loading branch information
washikano authored and falkTX committed Apr 15, 2024
1 parent aeb2f19 commit c801431
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -242,3 +242,6 @@
[submodule "plugins/StarlingVia"]
path = plugins/StarlingVia
url = https://github.com/starlingcode/Via-for-Rack.git
[submodule "plugins/Biset"]
path = plugins/Biset
url = https://github.com/gibbonjoyeux/VCV-Biset.git
4 changes: 4 additions & 0 deletions docs/LICENSES.md
Expand Up @@ -29,6 +29,7 @@ Bellow follows a list of all code licenses used in Cardinal and linked submodule
| Bacon Music | GPL-3.0-or-later | |
| Befaco | GPL-3.0-or-later | |
| Bidoo | GPL-3.0-or-later | |
| Biset | MIT | |
| Bogaudio | GPL-3.0-or-later | |
| Catro/Modulo | BSD-3-Clause | |
| cf | BSD-3-Clause | |
Expand Down Expand Up @@ -147,6 +148,9 @@ Below is a list of artwork licenses from plugins
| Befaco/components/* | CC-BY-NC-4.0 | |
| Befaco/fonts/Segment7Standard.otf | OFL-1.1-RFN | |
| Befaco/panels/* | Custom | Copyright © [Befaco](https://www.befaco.org/), [used and distributed with permission](LICENSE-PERMISSIONS.md#befaco-manu-retamero--befaco) |
| Biset/* | MIT | No artwork specific license provided |
| Biset/FT88-Regular.ttf | OFL | |
| Biset/Recursive_VF_1.085.ttf | OFL-1.1-no-RFN | |
| BogaudioModules/* | CC-BY-SA-4.0 | |
| BogaudioModules/fonts/audiowide.ttf | OFL-1.1-RFN | |
| BogaudioModules/fonts/inconsolata*.ttf | OFL-1.1-no-RFN | |
Expand Down
1 change: 1 addition & 0 deletions plugins/Biset
Submodule Biset added at a3acdd
13 changes: 13 additions & 0 deletions plugins/Makefile
Expand Up @@ -572,6 +572,12 @@ PLUGIN_FILES += BidooDark/plugin.cpp
BIDOO_CUSTOM = ChannelDisplay InstantiateExpanderItem LadderFilter PitchShifter $(DRWAV)
BIDOO_CUSTOM_PER_FILE = channel channel filterType

# --------------------------------------------------------------
# Biset

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

# --------------------------------------------------------------
# BogaudioModules

Expand Down Expand Up @@ -2193,6 +2199,13 @@ $(BUILD_DIR)/Bidoo%.cpp.o: Bidoo%.cpp
-Wno-sign-compare \
-Wno-unused-function

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

$(BUILD_DIR)/BogaudioModules/src/follower_base.cpp.o: BogaudioModules/src/follower_base.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
45 changes: 45 additions & 0 deletions plugins/plugins.cpp
Expand Up @@ -146,6 +146,13 @@ extern Model* modelChord;
// Bidoo
#include "Bidoo/src/plugin.hpp"

// Biset
#define Clock BisetClock
#define ButtonTrigger BisetButtonTrigger
#include "Biset/src/plugin.hpp"
#undef ButtonTrigger
#undef Clock

// BogaudioModules - integrate theme/skin support
#include <mutex>
#include <string>
Expand Down Expand Up @@ -875,6 +882,7 @@ Plugin* pluginInstance__Axioma;
Plugin* pluginInstance__Bacon;
Plugin* pluginInstance__Befaco;
Plugin* pluginInstance__Bidoo;
Plugin* pluginInstance__Biset;
Plugin* pluginInstance__BogaudioModules;
Plugin* pluginInstance__CatroModulo;
Plugin* pluginInstance__cf;
Expand Down Expand Up @@ -1613,6 +1621,42 @@ static void initStatic__Bidoo()
}
}

static void initStatic__Biset()
{
Plugin* const p = new Plugin;
pluginInstance__Biset = p;

const StaticPluginLoader spl(p, "Biset");
if (spl.ok())
{
p->addModel(modelTracker);
p->addModel(modelTrackerSynth);
p->addModel(modelTrackerDrum);
p->addModel(modelTrackerClock);
p->addModel(modelTrackerPhase);
p->addModel(modelTrackerQuant);
p->addModel(modelTrackerState);
p->addModel(modelTrackerControl);

p->addModel(modelRegex);
p->addModel(modelRegexCondensed);
p->addModel(modelRegexExp);

p->addModel(modelTree);
p->addModel(modelTreeSeed);

p->addModel(modelGbu);
p->addModel(modelPkm);

p->addModel(modelIgc);
p->addModel(modelOmega3);
p->addModel(modelOmega6);

p->addModel(modelSegfault);
p->addModel(modelBlank);
}
}

static void initStatic__BogaudioModules()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -3315,6 +3359,7 @@ void initStaticPlugins()
initStatic__Bacon();
initStatic__Befaco();
initStatic__Bidoo();
initStatic__Biset();
initStatic__BogaudioModules();
initStatic__CatroModulo();
initStatic__cf();
Expand Down

0 comments on commit c801431

Please sign in to comment.