Make variants usage less confusing in code; Fix missing vst3 fx
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
3e778c933c
commit
ad33ca6cd9
6 changed files with 36 additions and 22 deletions
2
dpf
2
dpf
|
@ -1 +1 @@
|
||||||
Subproject commit b325295d6c77032eeb042aacd242683aa1773f5d
|
Subproject commit c7e77db0ac265dd031c14a912108235c39733971
|
|
@ -18,6 +18,13 @@
|
||||||
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
||||||
|
#define CARDINAL_VARIANT_MAIN 1
|
||||||
|
#define CARDINAL_VARIANT_FX 0
|
||||||
|
#define CARDINAL_VARIANT_SYNTH 0
|
||||||
|
|
||||||
|
#define CARDINAL_NUM_AUDIO_INPUTS 8
|
||||||
|
#define CARDINAL_NUM_AUDIO_OUTPUTS 8
|
||||||
|
|
||||||
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
||||||
#define DISTRHO_PLUGIN_NAME "Cardinal"
|
#define DISTRHO_PLUGIN_NAME "Cardinal"
|
||||||
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal"
|
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal"
|
||||||
|
@ -30,8 +37,9 @@
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS 18
|
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
||||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 18
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS + 10
|
||||||
|
#define DISTRHO_PLUGIN_NUM_OUTPUTS CARDINAL_NUM_AUDIO_OUTPUTS + 10
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
||||||
|
@ -40,7 +48,4 @@
|
||||||
// #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:AnalyserPlugin"
|
// #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:AnalyserPlugin"
|
||||||
// #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Analyzer"
|
// #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Analyzer"
|
||||||
|
|
||||||
#define CARDINAL_NUM_AUDIO_INPUTS 8
|
|
||||||
#define CARDINAL_NUM_AUDIO_OUTPUTS 8
|
|
||||||
|
|
||||||
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
|
@ -18,6 +18,13 @@
|
||||||
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
||||||
|
#define CARDINAL_VARIANT_MAIN 0
|
||||||
|
#define CARDINAL_VARIANT_FX 1
|
||||||
|
#define CARDINAL_VARIANT_SYNTH 0
|
||||||
|
|
||||||
|
#define CARDINAL_NUM_AUDIO_INPUTS 2
|
||||||
|
#define CARDINAL_NUM_AUDIO_OUTPUTS 2
|
||||||
|
|
||||||
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
||||||
#define DISTRHO_PLUGIN_NAME "Cardinal FX"
|
#define DISTRHO_PLUGIN_NAME "Cardinal FX"
|
||||||
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal#fx"
|
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal#fx"
|
||||||
|
@ -30,8 +37,9 @@
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS 2
|
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
||||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
||||||
|
#define DISTRHO_PLUGIN_NUM_OUTPUTS CARDINAL_NUM_AUDIO_OUTPUTS
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
||||||
|
@ -40,7 +48,4 @@
|
||||||
// #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:AnalyserPlugin"
|
// #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:AnalyserPlugin"
|
||||||
// #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Analyzer"
|
// #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Analyzer"
|
||||||
|
|
||||||
#define CARDINAL_NUM_AUDIO_INPUTS DISTRHO_PLUGIN_NUM_INPUTS
|
|
||||||
#define CARDINAL_NUM_AUDIO_OUTPUTS DISTRHO_PLUGIN_NUM_OUTPUTS
|
|
||||||
|
|
||||||
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
|
@ -552,9 +552,9 @@ protected:
|
||||||
|
|
||||||
const char* getLabel() const override
|
const char* getLabel() const override
|
||||||
{
|
{
|
||||||
#if DISTRHO_PLUGIN_IS_SYNTH
|
#if CARDINAL_VARIANT_SYNTH
|
||||||
return "CardinalSynth";
|
return "CardinalSynth";
|
||||||
#elif DISTRHO_PLUGIN_NUM_INPUTS == 2
|
#elif CARDINAL_VARIANT_FX
|
||||||
return "CardinalFX";
|
return "CardinalFX";
|
||||||
#else
|
#else
|
||||||
return "Cardinal";
|
return "Cardinal";
|
||||||
|
@ -590,9 +590,9 @@ protected:
|
||||||
|
|
||||||
int64_t getUniqueId() const override
|
int64_t getUniqueId() const override
|
||||||
{
|
{
|
||||||
#if DISTRHO_PLUGIN_IS_SYNTH
|
#if CARDINAL_VARIANT_SYNTH
|
||||||
return d_cconst('d', 'C', 'n', 'S');
|
return d_cconst('d', 'C', 'n', 'S');
|
||||||
#elif DISTRHO_PLUGIN_NUM_INPUTS == 2
|
#elif CARDINAL_VARIANT_FX
|
||||||
return d_cconst('d', 'C', 'n', 'F');
|
return d_cconst('d', 'C', 'n', 'F');
|
||||||
#else
|
#else
|
||||||
return d_cconst('d', 'C', 'd', 'n');
|
return d_cconst('d', 'C', 'd', 'n');
|
||||||
|
@ -953,7 +953,7 @@ protected:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CARDINAL_NUM_AUDIO_OUTPUTS != 2
|
#if CARDINAL_VARIANT_MAIN
|
||||||
context->dataFrame = 0;
|
context->dataFrame = 0;
|
||||||
context->dataIns = inputs;
|
context->dataIns = inputs;
|
||||||
context->dataOuts = outputs;
|
context->dataOuts = outputs;
|
||||||
|
|
|
@ -18,6 +18,13 @@
|
||||||
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
||||||
|
#define CARDINAL_VARIANT_MAIN 0
|
||||||
|
#define CARDINAL_VARIANT_FX 0
|
||||||
|
#define CARDINAL_VARIANT_SYNTH 1
|
||||||
|
|
||||||
|
#define CARDINAL_NUM_AUDIO_INPUTS 0
|
||||||
|
#define CARDINAL_NUM_AUDIO_OUTPUTS 2
|
||||||
|
|
||||||
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
|
||||||
#define DISTRHO_PLUGIN_NAME "Cardinal Synth"
|
#define DISTRHO_PLUGIN_NAME "Cardinal Synth"
|
||||||
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal#synth"
|
#define DISTRHO_PLUGIN_URI "https://distrho.kx.studio/plugins/cardinal#synth"
|
||||||
|
@ -31,15 +38,12 @@
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_IS_SYNTH 1
|
#define DISTRHO_PLUGIN_IS_SYNTH 1
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS 0
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
||||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
|
#define DISTRHO_PLUGIN_NUM_OUTPUTS CARDINAL_NUM_AUDIO_OUTPUTS
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
|
||||||
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1
|
||||||
#define DISTRHO_PLUGIN_WANT_STATE 1
|
#define DISTRHO_PLUGIN_WANT_STATE 1
|
||||||
#define DISTRHO_PLUGIN_WANT_TIMEPOS 1
|
#define DISTRHO_PLUGIN_WANT_TIMEPOS 1
|
||||||
|
|
||||||
#define CARDINAL_NUM_AUDIO_INPUTS DISTRHO_PLUGIN_NUM_INPUTS
|
|
||||||
#define CARDINAL_NUM_AUDIO_OUTPUTS DISTRHO_PLUGIN_NUM_OUTPUTS
|
|
||||||
|
|
||||||
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
|
||||||
|
|
|
@ -240,7 +240,7 @@ BUILD_CXX_FLAGS += -DCARDINAL_PLUGIN_PREFIX='"$(PREFIX)"'
|
||||||
|
|
||||||
ifeq ($(NAME),CardinalFX)
|
ifeq ($(NAME),CardinalFX)
|
||||||
|
|
||||||
all: jack vst2 lv2 resources
|
all: jack lv2 vst2 vst3 resources
|
||||||
|
|
||||||
CORE_RESOURCES = $(filter-out icon.png,$(subst ../Rack/res/,,$(wildcard ../Rack/res/*))) template.vcv
|
CORE_RESOURCES = $(filter-out icon.png,$(subst ../Rack/res/,,$(wildcard ../Rack/res/*))) template.vcv
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue