Skip to content

Commit bfa0c80

Browse files
committed
Tweak name conflicts for dBiz
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 46dcb39 commit bfa0c80

4 files changed

Lines changed: 25 additions & 23 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*Cardinal, the Rack!*
44

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

910
More specifically, this is a [DPF-based](https://github.com/DISTRHO/DPF/)

dpf

plugins/Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,6 @@ PLUGIN_FILES += AS/freeverb/revmodel.cpp
393393
AS_CUSTOM = ADSR BpmDisplayWidget LabelDisplayWidget LedLight LowFrequencyOscillator SigDisplayWidget VCA WaveShaper YellowRedLight allpass comb revmodel
394394
AS_CUSTOM_PER_FILE = NumberDisplayWidget
395395

396-
# --------------------------------------------------------------
397-
# dBiz
398-
399-
PLUGIN_FILES += $(filter-out dBiz/src/plugin.cpp,$(wildcard dBiz/src/*.cpp))
400-
401-
# modules/types which are present in other plugins
402-
DBIZ_CUSTOM = Chord DarkDefaultItem Divider OrangeLight VCA4 darkPanelID lightPanelID
403-
404396
# --------------------------------------------------------------
405397
# AudibleInstruments
406398

@@ -581,6 +573,15 @@ PLUGIN_FILES += $(filter-out cf/src/plugin.cpp,$(wildcard cf/src/*.cpp))
581573
# modules/types which are present in other plugins
582574
CF_CUSTOM = $(DRWAV)
583575

576+
# --------------------------------------------------------------
577+
# dBiz
578+
579+
PLUGIN_FILES += $(filter-out dBiz/src/plugin.cpp,$(wildcard dBiz/src/*.cpp))
580+
581+
# modules/types which are present in other plugins
582+
DBIZ_CUSTOM = Chord DarkDefaultItem Divider FourSeq FourSeqWidget OrangeLight VCA4 Wavefolder darkPanelID lightPanelID
583+
DBIZ_CUSTOM_PER_FILE = MultiFilter Oscillator calcOutput sineOsc subBank
584+
584585
# --------------------------------------------------------------
585586
# DrumKit
586587

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

1515-
15161516
$(BUILD_DIR)/Axioma/%.cpp.o: Axioma/%.cpp
15171517
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
15181518
@echo "Compiling $<"
@@ -1609,6 +1609,7 @@ $(BUILD_DIR)/dBiz/src/%.cpp.o: dBiz/src/%.cpp
16091609
@echo "Compiling $<"
16101610
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
16111611
$(foreach m,$(DBIZ_CUSTOM),$(call custom_module_names,$(m),dBiz)) \
1612+
$(foreach m,$(DBIZ_CUSTOM_PER_FILE),$(call custom_per_file_names,$(m),dBiz_$(shell basename $*))) \
16121613
-DpluginInstance=pluginInstance__dBiz
16131614

16141615
$(BUILD_DIR)/DrumKit/%.cpp.o: DrumKit/%.cpp

plugins/plugins.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,26 +316,26 @@ extern Model* modelTestVCF;
316316
#include "ChowDSP/src/plugin.cpp"
317317
#undef init
318318

319-
// DrumKit
320-
#include "DrumKit/src/DrumKit.hpp"
321-
void setupSamples();
322-
323319
// dBiz
324-
#define darkPanelID dBizdarkPanelID
325320
#define DarkDefaultItem dBizDarkDefaultItem
326-
#define lightPanelID dBizlightPanelID
327321
#define OrangeLight dBizOrangeLight
322+
#define darkPanelID dBizdarkPanelID
323+
#define lightPanelID dBizlightPanelID
328324
#define modelChord modeldBizChord
329-
#define modelVCA4 modeldBizVCA4
330325
#define modelDivider modeldBizDivider
326+
#define modelVCA4 modeldBizVCA4
331327
#include "dBiz/src/plugin.hpp"
332-
#undef darkPanelID
333328
#undef DarkDefaultItem
334-
#undef lightPanelID
335329
#undef OrangeLight
330+
#undef darkPanelID
331+
#undef lightPanelID
336332
#undef modelChord
337-
#undef modelVCA4
338333
#undef modelDivider
334+
#undef modelVCA4
335+
336+
// DrumKit
337+
#include "DrumKit/src/DrumKit.hpp"
338+
void setupSamples();
339339

340340
// ESeries
341341
#include "ESeries/src/plugin.hpp"
@@ -1737,8 +1737,8 @@ static void initStatic__dBiz()
17371737
if (spl.ok())
17381738
{
17391739
#define modelChord modeldBizChord
1740-
#define modelVCA4 modeldBizVCA4
17411740
#define modelDivider modeldBizDivider
1741+
#define modelVCA4 modeldBizVCA4
17421742
p->addModel(modelNavControl);
17431743
p->addModel(modelBench);
17441744
p->addModel(modelContorno);
@@ -1773,8 +1773,8 @@ static void initStatic__dBiz()
17731773
p->addModel(modelOrder);
17741774
p->addModel(modelDualMatrix);
17751775
#undef modelChord
1776-
#undef modelVCA4
17771776
#undef modelDivider
1777+
#undef modelVCA4
17781778
}
17791779
}
17801780

0 commit comments

Comments
 (0)