Skip to content

Commit

Permalink
Update Slowboat patches (surge-synthesizer#6003)
Browse files Browse the repository at this point in the history
* Update Slowboat patches

Also fix current_scene being used for mod names in MODULATORS context menu section.
Moved FX slot shorthand name definition to SurgeStorage.h.
  • Loading branch information
mkruselj authored Mar 31, 2022
1 parent bdffeca commit cfbb183
Show file tree
Hide file tree
Showing 90 changed files with 25 additions and 65 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/5th Dirt.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Bass FX 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Bass FX 2.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Bass Guong 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Dirt Bass.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Dusty Bass 1.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Happy Bass 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Neuro Grease.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Perc Bass 1.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Rude Bass.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Saw Wob.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Sub Perc.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Basses/Sub Talk.fxp
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Hats 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Hats 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Kick Analog 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Kick Analog 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Kick Analog 3.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Kick Thumper.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Shakers.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Toms 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Drums/Toms 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Bacon Frying.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Night Life.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Random Bass FX.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Spirits Of Air 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Spirits Of Air 2.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Water Tank.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/FX/Wild Stab 2.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Keys/Aquatique.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Keys/Holiday Chords.fxp
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Leads/Grindy.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Leads/Lost Lead.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Leads/Machining.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Leads/Some Analog.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Leads/Turnout.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Pads/Choir Space .fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Percussion/Kalimba.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Percussion/Tribe.fxp
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Rhythms/Choir Pad.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Rhythms/Machine Jam.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Rhythms/Massive Pad 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Rhythms/Massive Pad 2.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Sequences/Cars.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Synths/Bell Square 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Synths/Bell Square 2.fxp
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Winds/Basseridoo 1.fxp
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Winds/Basseridoo 2.fxp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified resources/data/patches_3rdparty/Slowboat/Winds/Flutily.fxp
Binary file not shown.
77 changes: 18 additions & 59 deletions src/common/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ Parameter::~Parameter() = default;
void get_prefix(char *txt, ControlGroup ctrlgroup, int ctrlgroup_entry, int scene)
{
#define PREFIX_SIZE 16

char prefix[PREFIX_SIZE];

switch (ctrlgroup)
{
case cg_OSC:
Expand All @@ -55,7 +57,7 @@ void get_prefix(char *txt, ControlGroup ctrlgroup, int ctrlgroup_entry, int scen
case cg_ENV:
snprintf(prefix, PREFIX_SIZE, "env%i_", ctrlgroup_entry + 1);
break;
/*case 6:
/*case cg_LFO:
snprintf(prefix, PREFIX_SIZE, "ms%i_",ctrlgroup_entry+1);
break;*/
case cg_FX:
Expand All @@ -65,12 +67,15 @@ void get_prefix(char *txt, ControlGroup ctrlgroup, int ctrlgroup_entry, int scen
prefix[0] = '\0';
break;
};
if (scene == 2)
snprintf(txt, TXT_SIZE, "b_%s", prefix);
else if (scene == 1)
snprintf(txt, TXT_SIZE, "a_%s", prefix);

if (scene > 0 && scene <= n_scenes)
{
snprintf(txt, TXT_SIZE, "%c_%s", 'a' + scene - 1, prefix);
}
else
{
snprintf(txt, TXT_SIZE, "%s", prefix);
}
}

void Parameter::create_fullname(const char *dn, char *fn, ControlGroup ctrlgroup,
Expand Down Expand Up @@ -101,67 +106,21 @@ void Parameter::create_fullname(const char *dn, char *fn, ControlGroup ctrlgroup
}
else
{
if (a > 6)
snprintf(prefix, PREFIX_SIZE, "Scene LFO %i", a - 6);
if (a > n_lfos_voice)
snprintf(prefix, PREFIX_SIZE, "Scene LFO %i", a - n_lfos_voice);
else
snprintf(prefix, PREFIX_SIZE, "LFO %i", a);
}
}
break;
case cg_FX:
switch (ctrlgroup_entry)
if (ctrlgroup_entry >= 0 && ctrlgroup_entry < n_fx_slots)
{
case 0:
snprintf(prefix, PREFIX_SIZE, "FX A1");
break;
case 1:
snprintf(prefix, PREFIX_SIZE, "FX A2");
break;
case 2:
snprintf(prefix, PREFIX_SIZE, "FX B1");
break;
case 3:
snprintf(prefix, PREFIX_SIZE, "FX B2");
break;
case 4:
snprintf(prefix, PREFIX_SIZE, "FX S1");
break;
case 5:
snprintf(prefix, PREFIX_SIZE, "FX S2");
break;
case 6:
snprintf(prefix, PREFIX_SIZE, "FX M1");
break;
case 7:
snprintf(prefix, PREFIX_SIZE, "FX M2");
break;
case 8:
snprintf(prefix, PREFIX_SIZE, "FX A3");
break;
case 9:
snprintf(prefix, PREFIX_SIZE, "FX A4");
break;
case 10:
snprintf(prefix, PREFIX_SIZE, "FX B3");
break;
case 11:
snprintf(prefix, PREFIX_SIZE, "FX B4");
break;
case 12:
snprintf(prefix, PREFIX_SIZE, "FX S3");
break;
case 13:
snprintf(prefix, PREFIX_SIZE, "FX S4");
break;
case 14:
snprintf(prefix, PREFIX_SIZE, "FX M3");
break;
case 15:
snprintf(prefix, PREFIX_SIZE, "FX M4");
break;
default:
snprintf(prefix, PREFIX_SIZE, "FXERR");
break;
snprintf(prefix, PREFIX_SIZE, "%s", fxslot_shortnames[ctrlgroup_entry]);
}
else
{
snprintf(prefix, PREFIX_SIZE, "N/A");
}
break;
default:
Expand Down
4 changes: 0 additions & 4 deletions src/common/SurgeStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ SurgeStorage::SurgeStorage(std::string suppliedDataPath) : otherscene_clients(0)
{
auto portable = cp / L"SurgeXTData";

std::cout << portable << endl;

if (fs::is_directory(portable))
{
datapath = std::move(portable);
Expand Down Expand Up @@ -293,8 +291,6 @@ SurgeStorage::SurgeStorage(std::string suppliedDataPath) : otherscene_clients(0)
{
auto portable = cp / L"SurgeXTUserData";

std::cout << portable << endl;

if (fs::is_directory(portable))
{
userDataPath = std::move(portable);
Expand Down
5 changes: 5 additions & 0 deletions src/common/SurgeStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ const char fxslot_names[n_fx_slots][NAMECHARS] = {
"Send FX 3", "Send FX 4", "Global FX 3", "Global FX 4",
};

const char fxslot_shortnames[n_fx_slots][8] = {
"FX A1", "FX A2", "FX B1", "FX B2", "FX S1", "FX S2", "FX G1", "FX G2",
"FX A3", "FX A4", "FX B3", "FX B4", "FX S3", "FX S4", "FX G3", "FX G4",
};

enum fx_type
{
fxt_off = 0,
Expand Down
4 changes: 2 additions & 2 deletions src/surge-xt/gui/SurgeGUIEditorValueCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2154,8 +2154,8 @@ int32_t SurgeGUIEditor::controlModifierClicked(Surge::GUI::IComponentTagValue *c
modtxt, synth->getModDepth(ptag, ms, sc, modidx),
synth->isBipolarModulation(ms), Parameter::Menu);

std::string srctxt = modulatorNameWithIndex(
current_scene, ms, modidx, true, showScene);
std::string srctxt =
modulatorNameWithIndex(sc, ms, modidx, true, showScene);

auto comp =
std::make_unique<Surge::Widgets::ModMenuCustomComponent>(
Expand Down

0 comments on commit cfbb183

Please sign in to comment.