Skip to content

Commit

Permalink
Add dBiz
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer authored and falkTX committed Sep 8, 2022
1 parent 801a2cf commit 46dcb39
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,6 @@
[submodule "plugins/h4n4-modules"]
path = plugins/h4n4-modules
url = https://github.com/hannakoppelaar/h4n4-modules.git
[submodule "plugins/dBiz"]
path = plugins/dBiz
url = https://github.com/dBiz/dBiz.git
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ At the moment the following 3rd-party modules are provided:
- Catro/Modulo
- cf
- ChowDSP
- dBiz
- DrumKit
- E-Series
- ExpertSleepers Encoders
Expand Down
4 changes: 4 additions & 0 deletions docs/LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Bellow follows a list of all code licenses used in Cardinal and linked submodule
| Catro/Modulo | BSD-3-Clause | |
| cf | BSD-3-Clause | |
| ChowDSP | GPL-3.0-or-later | |
| dBiz | GPL-3.0-or-later | |
| DrumKit | CC0-1.0 | |
| E-Series | GPL-3.0-or-later | |
| ExpertSleepers Encoders | MIT | |
Expand Down Expand Up @@ -143,6 +144,9 @@ Below is a list of artwork licenses from plugins
| cf/VT323-Regular.ttf | OFL-1.1-no-RFN | |
| ChowDSP/* | GPL-3.0-or-later | Same license as source code |
| ChowDSP/fonts/RobotoCondensed-*.ttf | Apache-2.0 | |
| dBiz/* | CC-BY-NC-ND-4.0 | |
| dBiz/DejaVuSansMono.ttf | Bitstream-Vera | |
| dBiz/ShareTechMono-Regular.ttf | OFL-1.1 | |
| DrumKit/* | CC0-1.0 | |
| DrumKit/component/NovaMono.ttf | OFL-1.1-RFN | |
| E-Series/* | Custom | Copyright © Synthesis Technology, [used and distributed with permission](LICENSE-PERMISSIONS.md#eseries-paul-schreiber--synthtech) |
Expand Down
16 changes: 16 additions & 0 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,14 @@ PLUGIN_FILES += AS/freeverb/revmodel.cpp
AS_CUSTOM = ADSR BpmDisplayWidget LabelDisplayWidget LedLight LowFrequencyOscillator SigDisplayWidget VCA WaveShaper YellowRedLight allpass comb revmodel
AS_CUSTOM_PER_FILE = NumberDisplayWidget

# --------------------------------------------------------------
# dBiz

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

# modules/types which are present in other plugins
DBIZ_CUSTOM = Chord DarkDefaultItem Divider OrangeLight VCA4 darkPanelID lightPanelID

# --------------------------------------------------------------
# AudibleInstruments

Expand Down Expand Up @@ -1595,6 +1603,14 @@ $(BUILD_DIR)/ChowDSP/%.cpp.o: ChowDSP/%.cpp
-IChowDSP/lib/chowdsp_utils/modules/chowdsp_dsp/WDF \
-Wno-deprecated-copy


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

$(BUILD_DIR)/DrumKit/%.cpp.o: DrumKit/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down
1 change: 1 addition & 0 deletions plugins/dBiz
Submodule dBiz added at 88f1bd
70 changes: 70 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,23 @@ extern Model* modelTestVCF;
#include "DrumKit/src/DrumKit.hpp"
void setupSamples();

// dBiz
#define darkPanelID dBizdarkPanelID
#define DarkDefaultItem dBizDarkDefaultItem
#define lightPanelID dBizlightPanelID
#define OrangeLight dBizOrangeLight
#define modelChord modeldBizChord
#define modelVCA4 modeldBizVCA4
#define modelDivider modeldBizDivider
#include "dBiz/src/plugin.hpp"
#undef darkPanelID
#undef DarkDefaultItem
#undef lightPanelID
#undef OrangeLight
#undef modelChord
#undef modelVCA4
#undef modelDivider

// ESeries
#include "ESeries/src/plugin.hpp"

Expand Down Expand Up @@ -719,6 +736,7 @@ std::vector<Model*> hostTerminalModels;

// stuff that reads config files, we dont want that
int loadConsoleType() { return 0; }
bool loadDarkAsDefault() { return 1; }
int loadDirectOutMode() { return 0; }
void saveConsoleType(int) {}
void saveDarkAsDefault(bool) {}
Expand Down Expand Up @@ -750,6 +768,7 @@ Plugin* pluginInstance__BogaudioModules;
Plugin* pluginInstance__CatroModulo;
Plugin* pluginInstance__cf;
Plugin* pluginInstance__ChowDSP;
Plugin* pluginInstance__dBiz;
extern Plugin* pluginInstance__DrumKit;
Plugin* pluginInstance__ESeries;
Plugin* pluginInstance__ExpertSleepersEncoders;
Expand Down Expand Up @@ -1709,6 +1728,56 @@ static void initStatic__ChowDSP()
}
}

static void initStatic__dBiz()
{
Plugin* const p = new Plugin;
pluginInstance__dBiz = p;

const StaticPluginLoader spl(p, "dBiz");
if (spl.ok())
{
#define modelChord modeldBizChord
#define modelVCA4 modeldBizVCA4
#define modelDivider modeldBizDivider
p->addModel(modelNavControl);
p->addModel(modelBench);
p->addModel(modelContorno);
//p->addModel(modelContornoMK2);
p->addModel(modelTranspose);
p->addModel(modelUtility);
p->addModel(modelChord);
p->addModel(modelBene);
p->addModel(modelBenePads);
p->addModel(modelPerfMixer);
p->addModel(modelDrMix);
p->addModel(modelPerfMixer4);
p->addModel(modelVCA4);
p->addModel(modelVCA530);
p->addModel(modelRemix);
p->addModel(modelSmixer);
p->addModel(modelVerbo);
p->addModel(modelDVCO);
p->addModel(modelDAOSC);
p->addModel(modelTROSC);
p->addModel(modelTROSCMK2);
p->addModel(modelSuHa);
p->addModel(modelSuHaMK2);
p->addModel(modelFourSeq);
p->addModel(modelDivider);
p->addModel(modelUtil2);
p->addModel(modelSmorph);
p->addModel(modelBigSmorph);
p->addModel(modelSPan);
p->addModel(modelQuePasa);
p->addModel(modelDualFilter);
p->addModel(modelOrder);
p->addModel(modelDualMatrix);
#undef modelChord
#undef modelVCA4
#undef modelDivider
}
}

static void initStatic__DrumKit()
{
Plugin* const p = new Plugin;
Expand Down Expand Up @@ -2793,6 +2862,7 @@ void initStaticPlugins()
initStatic__CatroModulo();
initStatic__cf();
initStatic__ChowDSP();
initStatic__dBiz();
initStatic__DrumKit();
initStatic__ESeries();
initStatic__ExpertSleepersEncoders();
Expand Down

0 comments on commit 46dcb39

Please sign in to comment.