Skip to content

Commit

Permalink
Start cleanup of vst3 code
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Dec 19, 2021
1 parent 0e9db8f commit a9b0cd3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dpf
2 changes: 1 addition & 1 deletion plugins/Nekobi/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions plugins/Nekobi/DistrhoPluginNekobi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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 = "%";
Expand All @@ -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 = "%";
Expand All @@ -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 = "%";
Expand All @@ -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 = "%";
Expand All @@ -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 = "%";
Expand All @@ -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 = "%";
Expand Down
5 changes: 3 additions & 2 deletions plugins/Nekobi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ NAME = Nekobi
FILES_DSP = \
DistrhoPluginNekobi.cpp

FILES_UI = \
FILES_UIxx = \
DistrhoArtworkNekobi.cpp \
DistrhoUINekobi.cpp

Expand All @@ -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
Expand Down

0 comments on commit a9b0cd3

Please sign in to comment.