Browse Source

Update plugins and dpf

tags/v1.1
falkTX 8 years ago
parent
commit
220e149c87
26 changed files with 261 additions and 23 deletions
  1. +25
    -0
      dpf/distrho/src/DistrhoPluginInternal.hpp
  2. +6
    -1
      dpf/distrho/src/DistrhoPluginLADSPA+DSSI.cpp
  3. +25
    -4
      dpf/distrho/src/DistrhoPluginLV2export.cpp
  4. +9
    -2
      plugins/3BandEQ/Makefile
  5. +9
    -2
      plugins/3BandSplitter/Makefile
  6. +10
    -1
      plugins/AmplitudeImposer/Makefile
  7. +10
    -1
      plugins/CycleShifter/Makefile
  8. +6
    -2
      plugins/Kars/Makefile
  9. +10
    -1
      plugins/MVerb/Makefile
  10. +11
    -0
      plugins/Makefile.DPF-Max-Gen.mk
  11. +10
    -0
      plugins/Makefile.Kars.mk
  12. +11
    -0
      plugins/Makefile.MVerb.mk
  13. +11
    -0
      plugins/Makefile.Mini-Series.mk
  14. +10
    -0
      plugins/Makefile.Nekobi.mk
  15. +7
    -0
      plugins/Makefile.ProM.mk
  16. +7
    -0
      plugins/Makefile.glBars.mk
  17. +11
    -0
      plugins/Makefile.ndc-Plugs.mk
  18. +6
    -2
      plugins/Nekobi/Makefile
  19. +9
    -2
      plugins/PingPongPan/Makefile
  20. +8
    -0
      plugins/ProM/Makefile
  21. +10
    -1
      plugins/SoulForce/Makefile
  22. +8
    -1
      plugins/bitcrush/Makefile
  23. +8
    -1
      plugins/freeverb/Makefile
  24. +8
    -1
      plugins/gigaverb/Makefile
  25. +8
    -0
      plugins/glBars/Makefile
  26. +8
    -1
      plugins/pitchshift/Makefile

+ 25
- 0
dpf/distrho/src/DistrhoPluginInternal.hpp View File

@@ -43,6 +43,7 @@ struct Plugin::PrivateData {
#endif

uint32_t parameterCount;
uint32_t parameterOffset;
Parameter* parameters;

#if DISTRHO_PLUGIN_WANT_PROGRAMS
@@ -73,6 +74,7 @@ struct Plugin::PrivateData {
audioPorts(nullptr),
#endif
parameterCount(0),
parameterOffset(0),
parameters(nullptr),
#if DISTRHO_PLUGIN_WANT_PROGRAMS
programCount(0),
@@ -91,6 +93,22 @@ struct Plugin::PrivateData {
{
DISTRHO_SAFE_ASSERT(bufferSize != 0);
DISTRHO_SAFE_ASSERT(d_isNotZero(sampleRate));

#if defined(DISTRHO_PLUGIN_TARGET_DSSI) || defined(DISTRHO_PLUGIN_TARGET_LV2)
parameterOffset += DISTRHO_PLUGIN_NUM_INPUTS + DISTRHO_PLUGIN_NUM_OUTPUTS;
# if DISTRHO_PLUGIN_WANT_LATENCY
parameterOffset += 1;
# endif
#endif

#ifdef DISTRHO_PLUGIN_TARGET_LV2
# if (DISTRHO_PLUGIN_IS_SYNTH || DISTRHO_PLUGIN_WANT_TIMEPOS || DISTRHO_PLUGIN_WANT_STATE)
parameterOffset += 1;
# if DISTRHO_PLUGIN_WANT_STATE
parameterOffset += 1;
# endif
# endif
#endif
}

~PrivateData() noexcept
@@ -283,6 +301,13 @@ public:
return fData->parameterCount;
}

uint32_t getParameterOffset() const noexcept
{
DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr, 0);

return fData->parameterOffset;
}

uint32_t getParameterHints(const uint32_t index) const noexcept
{
DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr && index < fData->parameterCount, 0x0);


+ 6
- 1
dpf/distrho/src/DistrhoPluginLADSPA+DSSI.cpp View File

@@ -331,7 +331,12 @@ public:

int dssi_get_midi_controller_for_port(const ulong port) noexcept
{
const uint8_t midiCC = fPlugin.getParameterMidiCC(port);
const uint32_t parameterOffset = fPlugin.getParameterOffset();

if (port > parameterOffset)
return DSSI_NONE;

const uint8_t midiCC = fPlugin.getParameterMidiCC(port-parameterOffset);

if (midiCC == 0 || midiCC == 32 || midiCC >= 0x78)
return DSSI_NONE;


+ 25
- 4
dpf/distrho/src/DistrhoPluginLV2export.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2016 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2017 Filipe Coelho <falktx@falktx.com>
*
* 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
@@ -635,7 +635,18 @@ void lv2_generate_ttl(const char* const basename)

plugin.loadProgram(i);

presetString = "<" DISTRHO_PLUGIN_URI + presetSeparator + "preset" + strBuf + ">\n";
presetString = "<" DISTRHO_PLUGIN_URI + presetSeparator + "preset" + strBuf + ">\n";

# if DISTRHO_PLUGIN_WANT_FULL_STATE
if (numParameters == 0 && numStates == 0)
#else
if (numParameters == 0)
#endif
{
presetString += " .";
presetsString += presetString;
continue;
}

# if DISTRHO_PLUGIN_WANT_FULL_STATE
presetString += " state:state [\n";
@@ -658,12 +669,22 @@ void lv2_generate_ttl(const char* const basename)
presetString += " ] .\n\n";
# endif

bool firstParameter = true;

for (uint32_t j=0; j <numParameters; ++j)
{
if (j == 0)
if (plugin.isParameterOutput(j))
continue;

if (firstParameter)
{
presetString += " lv2:port [\n";
firstParameter = false;
}
else
{
presetString += " [\n";
}

presetString += " lv2:symbol \"" + plugin.getParameterSymbol(j) + "\" ;\n";

@@ -672,7 +693,7 @@ void lv2_generate_ttl(const char* const basename)
else
presetString += " pset:value " + String(plugin.getParameterValue(j)) + " ;\n";

if (j+1 == numParameters)
if (j+1 == numParameters || (j+2 == numParameters && plugin.isParameterOutput(j+1)))
presetString += " ] .\n\n";
else
presetString += " ] ,\n";


+ 9
- 2
plugins/3BandEQ/Makefile View File

@@ -27,14 +27,17 @@ include ../Makefile.Mini-Series.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_DGL),true)
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -42,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 9
- 2
plugins/3BandSplitter/Makefile View File

@@ -27,14 +27,17 @@ include ../Makefile.Mini-Series.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_DGL),true)
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -42,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 10
- 1
plugins/AmplitudeImposer/Makefile View File

@@ -27,12 +27,17 @@ include ../Makefile.ndc-Plugs.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -40,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 10
- 1
plugins/CycleShifter/Makefile View File

@@ -27,12 +27,17 @@ include ../Makefile.ndc-Plugs.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -40,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 6
- 2
plugins/Kars/Makefile View File

@@ -27,13 +27,13 @@ include ../Makefile.Kars.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_DGL),true)
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_DSSI),true)
TARGETS += dssi_dsp
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
@@ -42,13 +42,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 10
- 1
plugins/MVerb/Makefile View File

@@ -27,12 +27,17 @@ include ../Makefile.MVerb.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -40,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 11
- 0
plugins/Makefile.DPF-Max-Gen.mk View File

@@ -12,6 +12,17 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_LADSPA = true
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 10
- 0
plugins/Makefile.Kars.mk View File

@@ -12,6 +12,16 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 11
- 0
plugins/Makefile.MVerb.mk View File

@@ -12,6 +12,17 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_LADSPA = true
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 11
- 0
plugins/Makefile.Mini-Series.mk View File

@@ -12,6 +12,17 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_LADSPA = true
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 10
- 0
plugins/Makefile.Nekobi.mk View File

@@ -12,6 +12,16 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 7
- 0
plugins/Makefile.ProM.mk View File

@@ -8,6 +8,13 @@

include ../../Makefile.mk

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 7
- 0
plugins/Makefile.glBars.mk View File

@@ -8,6 +8,13 @@

include ../../Makefile.mk

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 11
- 0
plugins/Makefile.ndc-Plugs.mk View File

@@ -12,6 +12,17 @@ ifeq ($(OBJS_UI),)
HAVE_DGL = false
endif

# --------------------------------------------------------------
# Set which plugin formats to build

BUILD_JACK = true
ifeq ($(LINUX),true)
BUILD_LADSPA = true
BUILD_DSSI = true
endif
BUILD_LV2 = true
BUILD_VST2 = true

# --------------------------------------------------------------
# Basic setup



+ 6
- 2
plugins/Nekobi/Makefile View File

@@ -27,13 +27,13 @@ include ../Makefile.Nekobi.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_DGL),true)
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_DSSI),true)
TARGETS += dssi_dsp
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
@@ -42,13 +42,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 9
- 2
plugins/PingPongPan/Makefile View File

@@ -27,14 +27,17 @@ include ../Makefile.Mini-Series.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(HAVE_DGL),true)
ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -42,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 0
plugins/ProM/Makefile View File

@@ -26,11 +26,19 @@ include ../Makefile.ProM.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 10
- 1
plugins/SoulForce/Makefile View File

@@ -27,12 +27,17 @@ include ../Makefile.ndc-Plugs.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_DSSI),true)
ifeq ($(HAVE_DGL),true)
ifeq ($(HAVE_LIBLO),true)
TARGETS += dssi
@@ -40,13 +45,17 @@ endif
endif
endif

ifeq ($(BUILD_LV2),true)
ifeq ($(HAVE_DGL),true)
TARGETS += lv2_sep
else
TARGETS += lv2_dsp
endif
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 1
plugins/bitcrush/Makefile View File

@@ -23,16 +23,23 @@ include ../Makefile.DPF-Max-Gen.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2_dsp
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 1
plugins/freeverb/Makefile View File

@@ -23,16 +23,23 @@ include ../Makefile.DPF-Max-Gen.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2_dsp
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 1
plugins/gigaverb/Makefile View File

@@ -23,16 +23,23 @@ include ../Makefile.DPF-Max-Gen.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2_dsp
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 0
plugins/glBars/Makefile View File

@@ -26,11 +26,19 @@ include ../Makefile.glBars.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



+ 8
- 1
plugins/pitchshift/Makefile View File

@@ -23,16 +23,23 @@ include ../Makefile.DPF-Max-Gen.mk
# --------------------------------------------------------------
# Enable all possible plugin types

ifeq ($(BUILD_JACK),true)
ifeq ($(HAVE_JACK),true)
TARGETS += jack
endif
endif

ifeq ($(LINUX),true)
ifeq ($(BUILD_LADSPA),true)
TARGETS += ladspa
endif

ifeq ($(BUILD_LV2),true)
TARGETS += lv2_dsp
endif

ifeq ($(BUILD_VST),true)
TARGETS += vst
endif

all: $(TARGETS)



Loading…
Cancel
Save