Skip to content

Commit

Permalink
Activate control values from patch stream (#1008)
Browse files Browse the repository at this point in the history
As discussed in #915, for some reason the patch unstream doesn't
restore the value of the 8 controls whereas daw unstream does. This
is a conscious choice by the code for no reason any of us can see,
and is counterintuitive, so change it.
  • Loading branch information
baconpaul authored Aug 9, 2019
1 parent 6de6bd5 commit b29fd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/SurgePatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ void SurgePatch::load_xml(const void* data, int datasize, bool is_preset)
{
if (p->QueryIntAttribute("bipolar", &j) == TIXML_SUCCESS)
scene[0].modsources[ms_ctrl1 + cont]->set_bipolar(j);
if (!is_preset && (p->QueryDoubleAttribute("v", &d) == TIXML_SUCCESS))
if (p->QueryDoubleAttribute("v", &d) == TIXML_SUCCESS)
{
((ControllerModulationSource*)scene[0].modsources[ms_ctrl1 + cont])->set_target(d);
}
Expand Down

0 comments on commit b29fd12

Please sign in to comment.