Skip to content

Commit

Permalink
Remove Activate individual scene outputs option altogether
Browse files Browse the repository at this point in the history
Except leave it in for LV2.

Properly closes surge-synthesizer#5657
  • Loading branch information
mkruselj committed Mar 2, 2022
1 parent 719218c commit be75e95
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/common/SurgeStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,6 @@ struct DAWExtraStateStorage
bool msegStateIsPopulated = false;
modsources modsource = ms_lfo1, modsource_editor[n_scenes] = {ms_lfo1, ms_lfo1};

bool activateExtraOutputs = true;

struct
{
int timeEditMode = 0;
Expand Down
6 changes: 0 additions & 6 deletions src/common/SurgeSynthesizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4298,12 +4298,6 @@ void SurgeSynthesizer::loadFromDawExtraState()
}
}

void SurgeSynthesizer::setupActivateExtraOutputs()
{
// default off for FL Studio
activateExtraOutputs = (hostProgram.find("Fruit") == 0) ? true : false;
}

void SurgeSynthesizer::swapMetaControllers(int c1, int c2)
{
char nt[CUSTOM_CONTROLLER_LABEL_SIZE + 4];
Expand Down
1 change: 0 additions & 1 deletion src/common/SurgeSynthesizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ class alignas(16) SurgeSynthesizer
std::string hostProgram = "Unknown Host";
std::string juceWrapperType = "Unknown Wrapper Type";
bool activateExtraOutputs = true;
void setupActivateExtraOutputs();

void changeModulatorSmoothing(Modulator::SmoothingMode m);

Expand Down
1 change: 0 additions & 1 deletion src/surge-xt/SurgeSynthProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ SurgeSynthProcessor::SurgeSynthProcessor()

surge->hostProgram = juce::PluginHostType().getHostDescription();
surge->juceWrapperType = wrapperTypeString;
surge->setupActivateExtraOutputs();

midiKeyboardState.addListener(this);

Expand Down
13 changes: 0 additions & 13 deletions src/surge-xt/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3430,15 +3430,6 @@ juce::PopupMenu SurgeGUIEditor::makeWorkflowMenu(const juce::Point<int> &where)
{
auto wfMenu = juce::PopupMenu();

if (synth->hostProgram.find("Fruit") == 0) // only show this option for FL Studio
{
wfMenu.addItem(Surge::GUI::toOSCaseForMenu("Activate Individual Scene Outputs"), true,
(synth->activateExtraOutputs),
[this]() { synth->activateExtraOutputs = !synth->activateExtraOutputs; });

wfMenu.addSeparator();
}

bool tabPosMem = Surge::Storage::getUserDefaultValue(
&(this->synth->storage), Surge::Storage::RememberTabPositionsPerScene, false);

Expand Down Expand Up @@ -6597,8 +6588,6 @@ void SurgeGUIEditor::populateDawExtraState(SurgeSynthesizer *synth)
des->editor.current_fx = current_fx;
des->editor.modsource = modsource;

des->editor.activateExtraOutputs = synth->activateExtraOutputs;

for (int i = 0; i < n_scenes; ++i)
{
des->editor.current_osc[i] = current_osc[i];
Expand Down Expand Up @@ -6654,8 +6643,6 @@ void SurgeGUIEditor::loadFromDAWExtraState(SurgeSynthesizer *synth)
current_fx = des->editor.current_fx;
modsource = des->editor.modsource;

synth->activateExtraOutputs = des->editor.activateExtraOutputs;

activateFromCurrentFx();

for (int i = 0; i < n_scenes; ++i)
Expand Down

0 comments on commit be75e95

Please sign in to comment.