Update BaconPlugs and Befaco

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-17 14:46:35 +00:00
parent 66c2acc64c
commit 2798523af8
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
6 changed files with 20 additions and 13 deletions

@ -1 +1 @@
Subproject commit adf84fc00a953f8e8a1b378531a08ee68b9a68d7
Subproject commit a86d5081d12a72ae0d0c775c61813b695cde8a9c

@ -1 +1 @@
Subproject commit adcc9203245dae35ffc5a73020bdcc07ff90f557
Subproject commit fcf9b564017d8eee63504771a3006bea81749ff8

View file

@ -1671,7 +1671,7 @@ $(BUILD_DIR)/Axioma/%.cpp.o: Axioma/%.cpp
$(BUILD_DIR)/BaconPlugs/%.cpp.o: BaconPlugs/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -std=gnu++17 -c -o $@ \
$(foreach m,$(BACON_CUSTOM),$(call custom_module_names,$(m),BaconPlugs)) \
-DpluginInstance=pluginInstance__Bacon \
-DDARK_BACON \

View file

@ -1429,23 +1429,16 @@ static void initStatic__Bacon()
p->addModel(modelPolyGnome);
p->addModel(modelQuantEyes);
p->addModel(modelSampleDelay);
#ifdef BUILD_SORTACHORUS
p->addModel(modelSortaChorus);
#endif
p->addModel(modelChipNoise);
p->addModel(modelChipWaves);
p->addModel(modelChipYourWave);
p->addModel(modelOpen303);
#ifdef BUILD_GENERICLSFR
p->addModel(modelGenericLFSR);
#endif
p->addModel(modelKarplusStrongPoly);
p->addModel(modelALingADing);
p->addModel(modelBitulator);
#ifdef BUILD_PHASER
p->addModel(modelPhaser);
#endif
p->addModel(modelPolyGenerator);
p->addModel(modelLintBuddy);
p->addModel(modelLuckyHold);
}
}
@ -1479,6 +1472,7 @@ static void initStatic__Befaco()
p->addModel(modelNoisePlethora);
p->addModel(modelChannelStrip);
p->addModel(modelPonyVCO);
p->addModel(modelMotionMTR);
#undef modelADSR
#undef modelMixer
}

View file

@ -15,17 +15,23 @@
* For a full copy of the GNU General Public License see the LICENSE file.
*/
#include "../BaconPlugs/src/Style.hpp"
#include "../surgext/src/XTStyle.h"
using namespace baconpaul::rackplugs;
using namespace sst::surgext_rack::style;
void surgext_rack_initialize()
{
BaconStyle::get()->activeStyle = rack::settings::darkMode ? BaconStyle::DARK : BaconStyle::LIGHT;
XTStyle::initialize();
}
void surgext_rack_update_theme()
{
BaconStyle::get()->activeStyle = rack::settings::darkMode ? BaconStyle::DARK : BaconStyle::LIGHT;
BaconStyle::get()->notifyStyleListeners();
XTStyle::setGlobalStyle(rack::settings::darkMode ? XTStyle::Style::DARK : XTStyle::Style::LIGHT);
XTStyle::notifyStyleListeners();
}