Skip to content

Commit

Permalink
custom defines for StarlingVia
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Oct 24, 2023
1 parent a831339 commit d42d1b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ PLUGIN_BINARIES += StarlingVia/res/original.sync
PLUGIN_BINARIES += StarlingVia/res/original.sync3

# modules/types which are present in other plugins
STARLINGVIA_CUSTOM = Scanner
STARLINGVIA_CUSTOM = Scanner Scale Wavetable

# --------------------------------------------------------------
# stocaudio
Expand Down
8 changes: 8 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,12 @@ void addThemeMenuItems(Menu*, ModuleTheme*) {}

// Starling Via
#define modelScanner modelStarlingViaScanner
#define Scale starlingViaScale
#define Wavetable starlingViaWavetable
#include "StarlingVia/src/starling.hpp"
#undef modelScanner
#undef Scale
#undef Wavetable

// stocaudio
#include "stocaudio/src/plugin.hpp"
Expand Down Expand Up @@ -2829,6 +2833,8 @@ static void initStatic__StarlingVia()
if (spl.ok())
{
#define modelScanner modelStarlingViaScanner
#define Scale starlingViaScale
#define Wavetable starlingViaWavetable
p->addModel(modelMeta);
p->addModel(modelGateseq);
p->addModel(modelScanner);
Expand All @@ -2839,6 +2845,8 @@ static void initStatic__StarlingVia()
p->addModel(modelSync3XL);
p->addModel(modelSync3XLLevels);
#undef modelScanner
#undef Scale
#undef Wavetable
}
}

Expand Down

0 comments on commit d42d1b5

Please sign in to comment.