diff --git a/plugins/bitcrush/DistrhoPluginInfo.h b/plugins/bitcrush/DistrhoPluginInfo.h index 157b9ba..7270445 100644 --- a/plugins/bitcrush/DistrhoPluginInfo.h +++ b/plugins/bitcrush/DistrhoPluginInfo.h @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -26,6 +26,9 @@ #define DISTRHO_PLUGIN_NUM_INPUTS 1 #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 +#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:DistortionPlugin" +#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Distortion" + #define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Bitcrush example." #define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'b', 'c') diff --git a/plugins/bitcrush/DistrhoPluginMaxGen.cpp b/plugins/bitcrush/DistrhoPluginMaxGen.cpp index 206c281..3ce0bbb 100644 --- a/plugins/bitcrush/DistrhoPluginMaxGen.cpp +++ b/plugins/bitcrush/DistrhoPluginMaxGen.cpp @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen() // ----------------------------------------------------------------------- // Init +void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port) +{ + port.groupId = input ? kPortGroupMono : kPortGroupStereo; + + Plugin::initAudioPort(input, index, port); +} + void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter) { ParamInfo& info(fGenState->params[index]); diff --git a/plugins/common/DistrhoPluginMaxGen.hpp b/plugins/common/DistrhoPluginMaxGen.hpp index e2ee1da..e1be660 100644 --- a/plugins/common/DistrhoPluginMaxGen.hpp +++ b/plugins/common/DistrhoPluginMaxGen.hpp @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -44,6 +44,11 @@ protected: return DISTRHO_PLUGIN_DESCRIPTION; } + int64_t getUniqueId() const noexcept override + { + return DISTRHO_PLUGIN_VERSION; + } + const char* getMaker() const noexcept override { return "DISTRHO"; @@ -64,15 +69,10 @@ protected: return d_version(0, 1, 0); } - int64_t getUniqueId() const noexcept override - { - // TODO - return d_cconst('D', 'M', 'a', 'G'); - } - // ------------------------------------------------------------------- // Init + void initAudioPort(bool input, uint32_t index, AudioPort& port) override; void initParameter(uint32_t index, Parameter& parameter) override; // ------------------------------------------------------------------- diff --git a/plugins/freeverb/DistrhoPluginInfo.h b/plugins/freeverb/DistrhoPluginInfo.h index bce40c5..96cba61 100644 --- a/plugins/freeverb/DistrhoPluginInfo.h +++ b/plugins/freeverb/DistrhoPluginInfo.h @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -27,6 +27,7 @@ #define DISTRHO_PLUGIN_NUM_OUTPUTS 1 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin" +#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb" #define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Freeverb example." #define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'f', 'v') diff --git a/plugins/freeverb/DistrhoPluginMaxGen.cpp b/plugins/freeverb/DistrhoPluginMaxGen.cpp index 206c281..396b51a 100644 --- a/plugins/freeverb/DistrhoPluginMaxGen.cpp +++ b/plugins/freeverb/DistrhoPluginMaxGen.cpp @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen() // ----------------------------------------------------------------------- // Init +void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port) +{ + port.groupId = kPortGroupMono; + + Plugin::initAudioPort(input, index, port); +} + void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter) { ParamInfo& info(fGenState->params[index]); diff --git a/plugins/gigaverb/DistrhoPluginInfo.h b/plugins/gigaverb/DistrhoPluginInfo.h index f2de09c..c0a8ca3 100644 --- a/plugins/gigaverb/DistrhoPluginInfo.h +++ b/plugins/gigaverb/DistrhoPluginInfo.h @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -27,6 +27,7 @@ #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin" +#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb" #define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Gigaverb example." #define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'g', 'v') diff --git a/plugins/gigaverb/DistrhoPluginMaxGen.cpp b/plugins/gigaverb/DistrhoPluginMaxGen.cpp index 206c281..436ffcc 100644 --- a/plugins/gigaverb/DistrhoPluginMaxGen.cpp +++ b/plugins/gigaverb/DistrhoPluginMaxGen.cpp @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen() // ----------------------------------------------------------------------- // Init +void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port) +{ + port.groupId = kPortGroupStereo; + + Plugin::initAudioPort(input, index, port); +} + void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter) { ParamInfo& info(fGenState->params[index]); diff --git a/plugins/pitchshift/DistrhoPluginInfo.h b/plugins/pitchshift/DistrhoPluginInfo.h index 7611c7e..99607f7 100644 --- a/plugins/pitchshift/DistrhoPluginInfo.h +++ b/plugins/pitchshift/DistrhoPluginInfo.h @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -27,6 +27,7 @@ #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:PitchPlugin" +#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Pitch Shift" #define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Pitchshifter example." #define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'p', 's') diff --git a/plugins/pitchshift/DistrhoPluginMaxGen.cpp b/plugins/pitchshift/DistrhoPluginMaxGen.cpp index 206c281..3ce0bbb 100644 --- a/plugins/pitchshift/DistrhoPluginMaxGen.cpp +++ b/plugins/pitchshift/DistrhoPluginMaxGen.cpp @@ -1,6 +1,6 @@ /* * DPF Max Gen - * Copyright (C) 2015 Filipe Coelho + * Copyright (C) 2015-2022 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen() // ----------------------------------------------------------------------- // Init +void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port) +{ + port.groupId = input ? kPortGroupMono : kPortGroupStereo; + + Plugin::initAudioPort(input, index, port); +} + void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter) { ParamInfo& info(fGenState->params[index]);