Add WhatTheRack

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-05-01 02:09:12 +01:00
parent 62b55920c9
commit 19986c3023
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
7 changed files with 43 additions and 0 deletions

3
.gitmodules vendored
View file

@ -197,3 +197,6 @@
path = plugins/Meander
url = https://github.com/knchaffin/Meander.git
branch = master-V2
[submodule "plugins/WhatTheRack"]
path = plugins/WhatTheRack
url = https://github.com/korfuri/WhatTheRack.git

View file

@ -165,6 +165,7 @@ At the moment the following 3rd-party modules are provided:
- unless_modules
- Valley
- Voxglitch
- WhatTheRack
- ZetaCarinae
- ZZC

View file

@ -71,6 +71,7 @@ Bellow follows a list of all code licenses used in Cardinal and linked submodule
| unless_modules | GPL-3.0-or-later | |
| Valley | GPL-3.0-or-later | |
| Voxglitch | GPL-3.0-or-later | |
| WhatTheRack | WTFPL | |
| ZetaCarinae | GPL-3.0-or-later | |
| ZZC | GPL-3.0-or-later | |
@ -204,6 +205,8 @@ Below is a list of artwork licenses from plugins
| ValleyAudio/ShareTechMono-*.ttf | OFL-1.1-RFN | |
| voxglitch/* | GPL-3.0-or-later | No artwork specific license provided |
| voxglitch/ShareTechMono-Regular.ttf | OFL-1.1-RFN | |
| WhatTheRack/* | WTFPL | |
| WhatTheRack/BoomButton/* | CC-BY-3.0 | |
| ZetaCarinaeModules/* | GPL-3.0-or-later | [Same license as source code](https://github.com/mhampton/ZetaCarinaeModules/issues/8) |
| ZZC/* | CC-BY-NC-SA-4.0 | |
| ZZC/panels/* | CC-BY-NC-SA-4.0 | NOTE: The ZZC Logo is Copyright (c) 2019 Sergey Ukolov and cannot be used in derivative works; Cardinal's use does not officially constitute derivative work. |

View file

@ -866,6 +866,11 @@ VALLEYAUDIO_CUSTOM_PER_FILE = TempoKnob
PLUGIN_FILES += $(filter-out voxglitch/src/plugin.cpp,$(wildcard voxglitch/src/*.cpp))
# --------------------------------------------------------------
# WhatTheRack
PLUGIN_FILES += $(filter-out WhatTheRack/src/plugin.cpp,$(wildcard WhatTheRack/src/*.cpp))
# modules/types which are present in other plugins
VOXGLITCH_CUSTOM = $(DRWAV) AudioFile Looper Readout
VOXGLITCH_CUSTOM_PER_FILE = AudioBuffer GateSequencer Grain Sequencer SequencerDisplay VoltageSequencer
@ -1761,6 +1766,13 @@ $(BUILD_DIR)/voxglitch/%.cpp.o: voxglitch/%.cpp
-DpluginInstance=pluginInstance__Voxglitch \
-DSKIP_MINGW_FORMAT
$(BUILD_DIR)/WhatTheRack/%.cpp.o: WhatTheRack/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
$(foreach m,$(WHATTHERACK_CUSTOM),$(call custom_module_names,$(m),WhatTheRack)) \
-DpluginInstance=pluginInstance__WhatTheRack
$(BUILD_DIR)/ZetaCarinaeModules/%.cpp.o: ZetaCarinaeModules/%.cpp
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
@echo "Compiling $<"

1
plugins/WhatTheRack Submodule

@ -0,0 +1 @@
Subproject commit c10856fd0e02c057a11c3c15b345fcea8b0abce3

View file

@ -665,6 +665,9 @@ extern Model* modelBlankPanel;
#include "voxglitch/src/plugin.hpp"
#undef modelLooper
// WhatTheRack
#include "WhatTheRack/src/WhatTheRack.hpp"
// ZetaCarinaeModules
#include "ZetaCarinaeModules/src/plugin.hpp"
@ -750,6 +753,7 @@ Plugin* pluginInstance__stocaudio;
Plugin* pluginInstance__unless_modules;
Plugin* pluginInstance__ValleyAudio;
Plugin* pluginInstance__Voxglitch;
Plugin* pluginInstance__WhatTheRack;
Plugin* pluginInstance__ZetaCarinaeModules;
Plugin* pluginInstance__ZZC;
#endif // NOPLUGINS
@ -2487,6 +2491,20 @@ static void initStatic__Voxglitch()
}
}
static void initStatic__WhatTheRack()
{
Plugin* p = new Plugin;
pluginInstance__WhatTheRack = p;
const StaticPluginLoader spl(p, "WhatTheRack");
if (spl.ok())
{
p->addModel(modelWhatTheRack);
p->addModel(modelWhatTheMod);
p->addModel(modelWhatTheJack);
}
}
static void initStatic__ZetaCarinaeModules()
{
Plugin* p = new Plugin;
@ -2591,6 +2609,7 @@ void initStaticPlugins()
initStatic__unless_modules();
initStatic__ValleyAudio();
initStatic__Voxglitch();
initStatic__WhatTheRack();
initStatic__ZetaCarinaeModules();
initStatic__ZZC();
#endif // NOPLUGINS

View file

@ -308,6 +308,10 @@ static const struct {
{ "/voxglitch/res/wav_bank_front_panel.svg", {}, -1 },
{ "/voxglitch/res/wav_bank_mc_front_panel_v2.svg", {}, -1 },
{ "/voxglitch/res/xy_front_panel.svg", {}, -1 },
// WTFPL
{ "/WhatTheRack/res/WhatTheJack.svg", {}, -1 },
{ "/WhatTheRack/res/WhatTheMod.svg", {}, -1 },
{ "/WhatTheRack/res/WhatTheRack.svg", {}, -1 },
};
static inline bool invertPaint(NSVGshape* const shape, NSVGpaint& paint, const char* const svgFileToInvert = nullptr)