From a9b0cd3c72a2e7575b6bc3775d936364b13a146d Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 19 Dec 2021 22:12:51 +0000 Subject: [PATCH] Start cleanup of vst3 code --- dpf | 2 +- plugins/Nekobi/DistrhoPluginInfo.h | 2 +- plugins/Nekobi/DistrhoPluginNekobi.cpp | 16 ++++++++-------- plugins/Nekobi/Makefile | 5 +++-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/dpf b/dpf index 4938370..71b9ea0 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 493837049e773e45f842c0ee83b6b69c7c56adf9 +Subproject commit 71b9ea044e29fc4f367e1cc4a26a57c61983bd99 diff --git a/plugins/Nekobi/DistrhoPluginInfo.h b/plugins/Nekobi/DistrhoPluginInfo.h index 20ffdbf..2bf940e 100644 --- a/plugins/Nekobi/DistrhoPluginInfo.h +++ b/plugins/Nekobi/DistrhoPluginInfo.h @@ -22,7 +22,7 @@ #define DISTRHO_PLUGIN_NAME "Nekobi" #define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/Nekobi" -#define DISTRHO_PLUGIN_HAS_UI 1 +#define DISTRHO_PLUGIN_HAS_UI 0 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 #define DISTRHO_PLUGIN_IS_SYNTH 1 #define DISTRHO_PLUGIN_NUM_INPUTS 0 diff --git a/plugins/Nekobi/DistrhoPluginNekobi.cpp b/plugins/Nekobi/DistrhoPluginNekobi.cpp index 54fa72d..8f4c96a 100644 --- a/plugins/Nekobi/DistrhoPluginNekobi.cpp +++ b/plugins/Nekobi/DistrhoPluginNekobi.cpp @@ -163,7 +163,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) switch (index) { case paramWaveform: - parameter.hints = kParameterIsAutomable|kParameterIsInteger; + parameter.hints = kParameterIsAutomatable|kParameterIsInteger; parameter.name = "Waveform"; parameter.symbol = "waveform"; parameter.ranges.def = 0.0f; @@ -182,7 +182,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) } break; case paramTuning: - parameter.hints = kParameterIsAutomable; // was 0.5 <-> 2.0, log + parameter.hints = kParameterIsAutomatable; // was 0.5 <-> 2.0, log parameter.name = "Tuning"; parameter.symbol = "tuning"; parameter.ranges.def = 0.0f; @@ -191,7 +191,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 75; break; case paramCutoff: - parameter.hints = kParameterIsAutomable; // modified x2.5 + parameter.hints = kParameterIsAutomatable; // modified x2.5 parameter.name = "Cutoff"; parameter.symbol = "cutoff"; parameter.unit = "%"; @@ -201,7 +201,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 74; break; case paramResonance: - parameter.hints = kParameterIsAutomable; // modified x100 + parameter.hints = kParameterIsAutomatable; // modified x100 parameter.name = "VCF Resonance"; parameter.symbol = "resonance"; parameter.unit = "%"; @@ -211,7 +211,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 71; break; case paramEnvMod: - parameter.hints = kParameterIsAutomable; // modified x100 + parameter.hints = kParameterIsAutomatable; // modified x100 parameter.name = "Env Mod"; parameter.symbol = "env_mod"; parameter.unit = "%"; @@ -221,7 +221,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 1; //Mod Wheel break; case paramDecay: - parameter.hints = kParameterIsAutomable; // was 0.000009 <-> 0.0005, log + parameter.hints = kParameterIsAutomatable; // was 0.000009 <-> 0.0005, log parameter.name = "Decay"; parameter.symbol = "decay"; parameter.unit = "%"; @@ -231,7 +231,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 72; break; case paramAccent: - parameter.hints = kParameterIsAutomable; // modified x100 + parameter.hints = kParameterIsAutomatable; // modified x100 parameter.name = "Accent"; parameter.symbol = "accent"; parameter.unit = "%"; @@ -241,7 +241,7 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter) parameter.midiCC = 76; break; case paramVolume: - parameter.hints = kParameterIsAutomable; // modified x100 + parameter.hints = kParameterIsAutomatable; // modified x100 parameter.name = "Volume"; parameter.symbol = "volume"; parameter.unit = "%"; diff --git a/plugins/Nekobi/Makefile b/plugins/Nekobi/Makefile index fea8f32..be82d9f 100644 --- a/plugins/Nekobi/Makefile +++ b/plugins/Nekobi/Makefile @@ -15,7 +15,7 @@ NAME = Nekobi FILES_DSP = \ DistrhoPluginNekobi.cpp -FILES_UI = \ +FILES_UIxx = \ DistrhoArtworkNekobi.cpp \ DistrhoUINekobi.cpp @@ -28,7 +28,8 @@ include ../../dpf/Makefile.plugins.mk # -------------------------------------------------------------- # Extra flags -LINK_FLAGS += -lpthread +BASE_FLAGS += -pthread +LINK_FLAGS += -pthread # -------------------------------------------------------------- # Enable all possible plugin types