Skip to content

Commit

Permalink
Tweak name conflicts for dBiz
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Sep 8, 2022
1 parent 46dcb39 commit fad9257
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*Cardinal, the Rack!*

Cardinal is a free and open-source virtual modular synthesizer plugin,
available as JACK standalone and AU, LV2, VST2, VST3 and CLAP audio plugin for FreeBSD, Linux, macOS and Windows.
available as CLAP, LV2, VST2 and VST3 audio plugin for FreeBSD, Linux, macOS and Windows.
Plus AU and JACK or Native audio standalone for some systems.
It is based on the popular [VCV Rack](https://vcvrack.com/) but with a focus on being a fully self-contained plugin version.

More specifically, this is a [DPF-based](https://github.com/DISTRHO/DPF/)
Expand Down
2 changes: 1 addition & 1 deletion dpf
Submodule dpf updated 1 files
+17 −13 distrho/src/DistrhoUtils.cpp
19 changes: 10 additions & 9 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,6 @@ 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 @@ -581,6 +573,15 @@ PLUGIN_FILES += $(filter-out cf/src/plugin.cpp,$(wildcard cf/src/*.cpp))
# modules/types which are present in other plugins
CF_CUSTOM = $(DRWAV)

# --------------------------------------------------------------
# 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 FourSeq FourSeqWidget OrangeLight VCA4 Wavefolder darkPanelID lightPanelID
DBIZ_CUSTOM_PER_FILE = MultiFilter Oscillator calcOutput sineOsc subBank

# --------------------------------------------------------------
# DrumKit

Expand Down Expand Up @@ -1512,7 +1513,6 @@ $(BUILD_DIR)/Autinn/%.cpp.o: Autinn/%.cpp
-DpluginInstance=pluginInstance__Autinn \
-Dinit=init__Autinn


$(BUILD_DIR)/Axioma/%.cpp.o: Axioma/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
Expand Down Expand Up @@ -1609,6 +1609,7 @@ $(BUILD_DIR)/dBiz/src/%.cpp.o: dBiz/src/%.cpp
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(DBIZ_CUSTOM),$(call custom_module_names,$(m),dBiz)) \
$(foreach m,$(DBIZ_CUSTOM_PER_FILE),$(call custom_per_file_names,$(m),dBiz_$(shell basename $*))) \
-DpluginInstance=pluginInstance__dBiz

$(BUILD_DIR)/DrumKit/%.cpp.o: DrumKit/%.cpp
Expand Down
28 changes: 16 additions & 12 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,26 +316,28 @@ extern Model* modelTestVCF;
#include "ChowDSP/src/plugin.cpp"
#undef init

// DrumKit
#include "DrumKit/src/DrumKit.hpp"
void setupSamples();

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

// DrumKit
#include "DrumKit/src/DrumKit.hpp"
void setupSamples();

// ESeries
#include "ESeries/src/plugin.hpp"
Expand Down Expand Up @@ -1737,8 +1739,9 @@ static void initStatic__dBiz()
if (spl.ok())
{
#define modelChord modeldBizChord
#define modelVCA4 modeldBizVCA4
#define modelDivider modeldBizDivider
#define modelFourSeq modeldBizFourSeq
#define modelVCA4 modeldBizVCA4
p->addModel(modelNavControl);
p->addModel(modelBench);
p->addModel(modelContorno);
Expand Down Expand Up @@ -1773,8 +1776,9 @@ static void initStatic__dBiz()
p->addModel(modelOrder);
p->addModel(modelDualMatrix);
#undef modelChord
#undef modelVCA4
#undef modelDivider
#undef modelFourSeq
#undef modelVCA4
}
}

Expand Down

0 comments on commit fad9257

Please sign in to comment.