Skip to content

Commit

Permalink
Update surgext
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 5, 2024
1 parent 9b502ad commit 80bda51
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 24 deletions.
15 changes: 7 additions & 8 deletions plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ SURGEXT_FLAGS += $(NOFINITE_FLAGS)
SURGEXT_FLAGS += -std=gnu++17
SURGEXT_FLAGS += -DTIXML_USE_STL=1
SURGEXT_FLAGS += \
-Isurgext/libs/sst/sst-basic-blocks/include \
-Isurgext/libs/sst-rackhelpers/include \
-Isurgext/surge/src/common \
-Isurgext/surge/src/common/dsp \
-Isurgext/surge/src/common/dsp/filters \
Expand All @@ -1035,20 +1035,20 @@ SURGEXT_FLAGS += \
-Isurgext/surge/src/common/dsp/oscillators \
-Isurgext/surge/src/common/dsp/modulators \
-Isurgext/surge/src/surge-testrunner \
-Isurgext/surge/libs/sst/sst-filters/include \
-Isurgext/surge/libs/fmt/include \
-Isurgext/surge/libs/LuaJitLib/LuaJIT/src \
-Isurgext/surge/libs/sst/sst-basic-blocks/include \
-Isurgext/surge/libs/sst/sst-cpputils/include \
-Isurgext/surge/libs/sst/sst-waveshapers/include \
-Isurgext/surge/libs/sst/sst-effects/include \
-Isurgext/surge/libs/sst/sst-filters/include \
-Isurgext/surge/libs/sst/sst-plugininfra/include \
-Isurgext/surge/libs/sst/sst-plugininfra/libs/tinyxml/include \
-Isurgext/surge/libs/sst/sst-plugininfra/libs/filesystem \
-Isurgext/surge/libs/fmt/include \
-Isurgext/surge/libs/LuaJitLib/LuaJIT/src \
-Isurgext/surge/libs/sst/sst-waveshapers/include \
-Isurgext/surge/libs/strnatcmp \
-Isurgext/surge/src/headless \
-Isurgext/surge/libs/tuning-library/include \
-I../deps/surge-build/libs/sst/sst-plugininfra/libs/filesystem/include \
-include limits \
-include cstdint \
-DSURGE_COMPILE_BLOCK_SIZE=8 \
-DSURGE_SKIP_ODDSOUND_MTS \
-DHAS_LUA=0 \
Expand Down Expand Up @@ -1403,7 +1403,6 @@ RESOURCE_FILES += surgext/build/surge-data/configuration.xml
RESOURCE_FILES += surgext/build/surge-data/fx_presets
RESOURCE_FILES += surgext/build/surge-data/wavetables
RESOURCE_FILES += surgext/build/surge-data/windows.wt
RESOURCE_FILES += surgext/patches
RESOURCE_FILES += $(wildcard surgext/res/xt/fonts/quicksand/*.ttf)
RESOURCE_FILES += $(wildcard unless_modules/art/*.art)
RESOURCE_FILES += $(wildcard unless_modules/art/svg/*/*.svg)
Expand Down
10 changes: 10 additions & 0 deletions plugins/plugins-mini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,28 +559,34 @@ static void initStatic__surgext()
// Add the ported ones
p->addModel(modelSurgeLFO);
p->addModel(modelSurgeMixer);
p->addModel(modelSurgeMixerSlider);
p->addModel(modelSurgeModMatrix);
p->addModel(modelSurgeWaveshaper);
/*
p->addModel(modelSurgeDelay);
p->addModel(modelSurgeDelayLineByFreq);
p->addModel(modelSurgeDelayLineByFreqExpanded);
p->addModel(modelSurgeDigitalRingMods);
p->addModel(modelSurgeVCF);
*/
spl.removeModule("SurgeXTDelay");
spl.removeModule("SurgeXTDelayLineByFreq");
spl.removeModule("SurgeXTDelayLineByFreqExpanded");
spl.removeModule("SurgeXTDigitalRingMod");
spl.removeModule("SurgeXTVCF");

spl.removeModule("SurgeXTFXBonsai");
spl.removeModule("SurgeXTFXChorus");
spl.removeModule("SurgeXTFXChow");
spl.removeModule("SurgeXTFXCombulator");
spl.removeModule("SurgeXTDigitalRingMod");
spl.removeModule("SurgeXTFXDistortion");
spl.removeModule("SurgeXTFXExciter");
spl.removeModule("SurgeXTFXEnsemble");
spl.removeModule("SurgeXTFXFlanger");
spl.removeModule("SurgeXTFXFrequencyShifter");
spl.removeModule("SurgeXTFXNeuron");
spl.removeModule("SurgeXTFXNimbus");
spl.removeModule("SurgeXTFXPhaser");
spl.removeModule("SurgeXTFXResonator");
spl.removeModule("SurgeXTFXReverb");
Expand All @@ -595,10 +601,14 @@ static void initStatic__surgext()
p->addModel(modelEGxVCA);
p->addModel(modelQuadAD);
p->addModel(modelQuadLFO);
p->addModel(modelUnisonHelper);
p->addModel(modelUnisonHelperCVExpander);
*/
spl.removeModule("SurgeXTEGxVCA");
spl.removeModule("SurgeXTQuadAD");
spl.removeModule("SurgeXTQuadLFO");
spl.removeModule("SurgeXTUnisonHelper");
spl.removeModule("SurgeXTUnisonHelperCVExpander");

surgext_rack_initialize();
}
Expand Down
6 changes: 6 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2920,9 +2920,11 @@ static void initStatic__surgext()
p->addModel(modelSurgeDelay);
p->addModel(modelSurgeDelayLineByFreq);
p->addModel(modelSurgeDelayLineByFreqExpanded);
p->addModel(modelSurgeDigitalRingMods);
p->addModel(modelSurgeWaveshaper);
p->addModel(modelSurgeLFO);
p->addModel(modelSurgeMixer);
p->addModel(modelSurgeMixerSlider);
p->addModel(modelSurgeModMatrix);

p->addModel(modelFXReverb);
Expand All @@ -2941,12 +2943,16 @@ static void initStatic__surgext()
p->addModel(modelFXExciter);
p->addModel(modelFXEnsemble);
p->addModel(modelFXCombulator);
p->addModel(modelFXNimbus);
p->addModel(modelFXSpringReverb);
p->addModel(modelFXTreeMonster);
p->addModel(modelFXBonsai);

p->addModel(modelEGxVCA);
p->addModel(modelQuadAD);
p->addModel(modelQuadLFO);
p->addModel(modelUnisonHelper);
p->addModel(modelUnisonHelperCVExpander);

surgext_rack_initialize();
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/surgext
Submodule surgext updated 130 files
16 changes: 3 additions & 13 deletions plugins/surgext-helper/surgext-helper.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021-2023 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the LICENSE file.
* Copyright (C) 2021-2024 Filipe Coelho <falktx@falktx.com>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

#include "../BaconPlugs/src/Style.hpp"
Expand All @@ -25,6 +14,7 @@ void surgext_rack_initialize()
{
BaconStyle::get()->activeStyle = rack::settings::preferDarkPanels ? BaconStyle::DARK : BaconStyle::LIGHT;
XTStyle::initialize();
XTStyle::setGlobalStyle(rack::settings::preferDarkPanels ? XTStyle::Style::DARK : XTStyle::Style::LIGHT);
}

void surgext_rack_update_theme()
Expand Down
2 changes: 0 additions & 2 deletions src/Makefile.cardinal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ SYMLINKED_DIRS_RESOURCES += Orbits/presets
SYMLINKED_DIRS_RESOURCES += stoermelder-packone/presets
SYMLINKED_DIRS_RESOURCES += surgext/build/surge-data/fx_presets
SYMLINKED_DIRS_RESOURCES += surgext/build/surge-data/wavetables
SYMLINKED_DIRS_RESOURCES += surgext/patches
SYMLINKED_DIRS_RESOURCES += surgext/presets
endif
LINK_FLAGS += $(foreach d,$(SYMLINKED_DIRS_RESOURCES),--preload-file=../../bin/CardinalNative.lv2/resources/$(d)@/resources/$(d))

Expand Down

0 comments on commit 80bda51

Please sign in to comment.