Skip to content

Commit

Permalink
Merge branch 'DISTRHO:main' into feature/add-starling-via
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer authored Mar 14, 2024
2 parents 085615b + d99b2e7 commit 899b330
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 48 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: build
on: [push, pull_request]

env:
CACHE_VERSION: 7
CACHE_VERSION: 9
CARDINAL_UNDER_WINE: 1
CIBUILD: true
DEBIAN_FRONTEND: noninteractive
LIBGL_ALWAYS_SOFTWARE: true
PAWPAW_FAST_MATH: 1
PAWPAW_SKIP_GLIB: 1
PAWPAW_SKIP_LTO: 1
PAWPAW_SKIP_LV2: 1
Expand Down Expand Up @@ -600,7 +601,7 @@ jobs:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
make features
make NOOPT=true SKIP_STRIPPING=true carla deps dgl plugins resources -j $(nproc)
make CIBUILD=false NOOPT=true SKIP_STRIPPING=true carla deps dgl plugins resources -j $(nproc)
# single job for final build stage, otherwise we might get killed due to OOM
- name: Build Cardinal (final build stage)
env:
Expand All @@ -609,8 +610,8 @@ jobs:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
make features
make NOOPT=true SKIP_STRIPPING=true -j 1 -C src jack
make NOOPT=true -j 1
make CIBUILD=false NOOPT=true SKIP_STRIPPING=true -j 1 -C src jack
make CIBUILD=false NOOPT=true -j 1
./dpf/utils/generate-ttl.sh
- name: Run Cardinal self-tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,13 @@ SURGE_ENV = env \
SURGE_LIB = $(SURGE_DEP_PATH)/src/common/libsurge-common.a

$(SURGE_LIB): $(SURGE_DEP_PATH)/Makefile
$(DEP_MAKE) -C $(SURGE_DEP_PATH) surge-common
+$(DEP_MAKE) -C $(SURGE_DEP_PATH) surge-common

$(SURGE_DEP_PATH)/Makefile: $(SURGE_SRC_PATH)/CMakeLists.txt
mkdir -p $(SURGE_DEP_PATH)
cd $(SURGE_DEP_PATH) && \
$(SURGE_ENV) $(CMAKE) \
-DSURGE_BUILD_32BIT_LINUX=TRUE \
-DSURGE_COMPILE_BLOCK_SIZE=8 \
-DSURGE_SKIP_AIRWINDOWS=TRUE \
-DSURGE_SKIP_JUCE_FOR_RACK=TRUE \
Expand Down
2 changes: 1 addition & 1 deletion dpf
18 changes: 2 additions & 16 deletions include/settings.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021-2023 Filipe Coelho <[email protected]>
*
* 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 <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

#pragma once
Expand All @@ -24,8 +13,5 @@ namespace settings {

extern int rateLimit;

// TODO remove after updating all plugins
extern bool darkMode;

} // namespace settings
} // namespace rack
2 changes: 1 addition & 1 deletion plugins/AnimatedCircuits
2 changes: 1 addition & 1 deletion plugins/RebelTech
Submodule RebelTech updated 1 files
+1 −1 src/plugin.hpp
2 changes: 1 addition & 1 deletion plugins/Sapphire
Submodule Sapphire updated 96 files
+55 −0 CHANGELOG.md
+6 −4 Elastika.md
+7 −0 Frolic.md
+7 −0 Glee.md
+30 −0 Hiss.md
+38 −0 LowSensitivityAttenuverterKnobs.md
+213 −0 Nucleus.md
+21 −0 Polynucleus.md
+51 −9 README.md
+23 −0 Tin.md
+19 −0 Tout.md
+20 −2 Tricorder.md
+6 −4 TubeUnit.md
+ images/frolic.png
+ images/frolic_tricorder.png
+ images/glee.png
+ images/glee_tricorder.png
+ images/hiss.png
+ images/hiss_menu.png
+ images/lowsense1.png
+ images/lowsense2.png
+ images/lowsense3.png
+ images/nucleus.png
+ images/nucleus_audio_mode.png
+ images/nucleus_context_menu.png
+ images/nucleus_control_mode.png
+ images/nucleus_level_warning.png
+ images/nucleus_output_hover.png
+ images/nucleus_output_select.png
+ images/nucleus_tricorder.png
+ images/polynucleus.png
+ images/tin.png
+ images/tin_tricorder.png
+ images/tin_tricorder_polyphonic.png
+ images/tout.png
+ images/tricorder_controls.png
+ images/tricorder_menu.png
+ images/tricorder_tout.png
+65 −25 plugin.json
+27 −25 res/frolic.svg
+27 −25 res/glee.svg
+27 −0 res/hiss.svg
+85 −0 res/nucleus.svg
+6 −0 res/nucleus_label_audio.svg
+6 −0 res/nucleus_label_control.svg
+69 −0 res/polynucleus.svg
+6 −0 res/polynucleus_label_audio.svg
+6 −0 res/polynucleus_label_control.svg
+28 −9 res/tin.svg
+43 −0 res/tout.svg
+60 −89 src/elastika.cpp
+21 −2 src/elastika_engine.hpp
+12 −143 src/frolic.cpp
+12 −143 src/glee.cpp
+171 −0 src/hiss.cpp
+4 −5 src/mesh_hex.cpp
+9 −3 src/moots.cpp
+627 −0 src/nucleus.cpp
+376 −0 src/nucleus_engine.hpp
+88 −0 src/nucleus_init.hpp
+17 −0 src/nucleus_panel.hpp
+48 −0 src/nucleus_reset.hpp
+12 −0 src/nucleus_shared.hpp
+7 −3 src/plugin.cpp
+523 −6 src/plugin.hpp
+662 −0 src/polynucleus.cpp
+19 −0 src/polynucleus_panel.hpp
+0 −6 src/reloadable_widget.hpp
+136 −0 src/sapphire_chaos_module.hpp
+68 −3 src/sapphire_engine.hpp
+16 −0 src/sapphire_globals.cpp
+18 −0 src/sapphire_random.hpp
+17 −1 src/sapphire_simd.hpp
+62 −2 src/sapphire_widget.hpp
+47 −21 src/tin.cpp
+143 −0 src/tout.cpp
+468 −142 src/tricorder.cpp
+0 −48 src/tricorder.hpp
+51 −64 src/tubeunit.cpp
+1 −0 util/.gitignore
+4 −0 util/buildall
+0 −174 util/chaos_svg.py
+2 −1 util/cmdline/bin/.gitignore
+3 −0 util/cmdline/build
+1 −0 util/cmdline/correct/lohifilter.txt
+ util/cmdline/correct/nucleus.wav
+28 −1 util/cmdline/lohifilter.cpp
+90 −0 util/cmdline/nucleus_standalone.cpp
+4 −1 util/cmdline/run
+9 −8 util/make_panels
+509 −0 util/make_sapphire_svg.py
+19 −0 util/nucleus_solver
+181 −0 util/nukesolve.cpp
+9 −0 util/sapphire.py
+10 −0 util/svgpanel.py
+2 −2 util/tubeunit_svg.py
4 changes: 4 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2907,8 +2907,12 @@ static void initStatic__Sapphire()
p->addModel(modelElastika);
p->addModel(modelFrolic);
p->addModel(modelGlee);
p->addModel(modelHiss);
p->addModel(modelMoots);
p->addModel(modelNucleus);
p->addModel(modelPolynucleus);
p->addModel(modelTin);
p->addModel(modelTout);
p->addModel(modelTricorder);
p->addModel(modelTubeUnit);
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/stoermelder-packone
2 changes: 1 addition & 1 deletion plugins/surgext
Submodule surgext updated 85 files
+5 −0 CMakeLists.txt
+11 −7 README.md
+53 −2 docs/changelog.md
+12 −47 docs/nightlychangelog.md
+1 −1 libs/sst-rackhelpers
+1 −1 plugin.json
+1 −1 scripts/fix_file_comments.pl
+1 −1 src/Delay.cpp
+1 −1 src/Delay.h
+1 −1 src/DelayLineByFreq.cpp
+1 −1 src/DelayLineByFreq.h
+1 −1 src/DelayLineByFreqExpanded.cpp
+1 −1 src/DelayLineByFreqExpanded.h
+1 −1 src/DigitalRingMod.cpp
+6 −4 src/DigitalRingMod.h
+1 −1 src/EGxVCA.cpp
+1 −1 src/EGxVCA.h
+1 −1 src/FX.cpp
+29 −2 src/FX.h
+1 −1 src/FXConfig.h
+10 −2 src/LFO.cpp
+1 −1 src/LFO.h
+1 −1 src/LayoutConstants.h
+5 −1 src/LayoutEngine.h
+1 −1 src/Mixer.cpp
+1 −1 src/Mixer.h
+1 −1 src/ModMatrix.cpp
+1 −1 src/ModMatrix.h
+1 −1 src/NBarEditorWidget.h
+1 −1 src/QuadAD.cpp
+1 −1 src/QuadAD.h
+1 −1 src/QuadLFO.cpp
+3 −2 src/QuadLFO.h
+1 −1 src/SurgeXT.cpp
+1 −1 src/SurgeXT.h
+1 −1 src/TemposyncSupport.h
+1 −1 src/UnisonHelper.cpp
+1 −1 src/UnisonHelper.h
+1 −1 src/VCF.cpp
+1 −1 src/VCF.h
+1 −1 src/VCO.cpp
+3 −3 src/VCO.h
+1 −1 src/VCOConfig.h
+2 −2 src/Waveshaper.cpp
+5 −2 src/Waveshaper.h
+1 −1 src/XTModule.cpp
+8 −8 src/XTModule.h
+1 −1 src/XTModuleWidget.cpp
+1 −1 src/XTModuleWidget.h
+1 −1 src/XTStyle.cpp
+1 −1 src/XTStyle.h
+1 −1 src/XTWidgets.cpp
+133 −6 src/XTWidgets.h
+1 −1 src/fxconfig/Bonsai.h
+1 −1 src/fxconfig/Chorus.h
+1 −1 src/fxconfig/Chow.h
+1 −1 src/fxconfig/Combulator.h
+1 −1 src/fxconfig/Distortion.h
+1 −1 src/fxconfig/Ensemble.h
+1 −1 src/fxconfig/Exciter.h
+1 −1 src/fxconfig/Flanger.h
+1 −1 src/fxconfig/FrequencyShifter.h
+1 −1 src/fxconfig/Neuron.h
+1 −1 src/fxconfig/Nimbus.h
+1 −1 src/fxconfig/Phaser.h
+1 −1 src/fxconfig/Resonator.h
+1 −1 src/fxconfig/Reverb1.h
+1 −1 src/fxconfig/Reverb2.h
+29 −3 src/fxconfig/RingModulator.h
+1 −1 src/fxconfig/RotarySpeaker.h
+1 −1 src/fxconfig/SpringReverb.h
+1 −1 src/fxconfig/TreeMonster.h
+1 −1 src/fxconfig/Vocoder.h
+3 −2 src/vcoconfig/Alias.h
+2 −1 src/vcoconfig/Classic.h
+1 −1 src/vcoconfig/FM2.h
+1 −1 src/vcoconfig/FM3.h
+2 −1 src/vcoconfig/Modern.h
+2 −2 src/vcoconfig/SHNoise.h
+3 −1 src/vcoconfig/Sine.h
+1 −1 src/vcoconfig/String.h
+1 −1 src/vcoconfig/Twist.h
+2 −2 src/vcoconfig/Wavetable.h
+2 −2 src/vcoconfig/Window.h
+1 −1 surge
20 changes: 5 additions & 15 deletions src/CardinalCommon.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021-2023 Filipe Coelho <[email protected]>
*
* 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 <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

#pragma once
Expand Down Expand Up @@ -87,8 +76,9 @@ void openBrowser(const std::string& url);
# define CARDINAL_INIT_OSC_THREAD
#endif

typedef void* lo_server;
typedef void* lo_server_thread;
#ifdef HAVE_LIBLO
# include <lo/lo_types.h>
#endif

START_NAMESPACE_DISTRHO

Expand Down
2 changes: 0 additions & 2 deletions src/custom/dep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace settings {
int rateLimit = 0;
extern bool preferDarkPanels;
extern std::string uiTheme;
bool darkMode; // TODO remove after updating all plugins
}
namespace ui {
void refreshTheme();
Expand Down Expand Up @@ -1451,7 +1450,6 @@ namespace rack {
void switchDarkMode(const bool darkMode)
{
#ifndef HEADLESS
settings::darkMode = darkMode; // TODO remove after updating all plugins
settings::preferDarkPanels = darkMode;
settings::uiTheme = darkMode ? "dark" : "light";
ui::refreshTheme();
Expand Down

0 comments on commit 899b330

Please sign in to comment.