Skip to content

Commit

Permalink
Rebuild controls for a couple of special cases
Browse files Browse the repository at this point in the history
When OSC type changes or envelope mode changes, the results are
really non-local. (OSC type lays out all the sliders again;
envelope mode changes the envelope control switches). To address
this we can force an editor rebuild when these are toggled, kind
of like we do with FX (although using a slightly different API)

Closes surge-synthesizer#206
Addresses part of surge-synthesizer#702
  • Loading branch information
baconpaul committed Aug 22, 2019
1 parent a0eb7f4 commit cdcd18a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/SurgeSynthesizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,12 @@ bool SurgeSynthesizer::setParameter01(long index, float value, bool external, bo
}
}
break;
case ct_wstype:
case ct_osctype:
switch_toggled_queued = true;
need_refresh = true;
refresh_editor = true;
break;
case ct_wstype:
case ct_bool_mute:
case ct_bool_fm:
case ct_fbconfig:
Expand Down Expand Up @@ -1343,6 +1347,7 @@ bool SurgeSynthesizer::setParameter01(long index, float value, bool external, bo
}
break;
case ct_envmode:
refresh_editor = true;
need_refresh = true; // See github issue #160
break;
case ct_bool_link_switch:
Expand Down

0 comments on commit cdcd18a

Please sign in to comment.