MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetLFOEnabled

Method SetLFOEnabled

Source/FloatSliderLFOControl.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void FloatSliderLFOControl::SetLFOEnabled(bool enabled)
231{
232 if (enabled && !mEnabled && !TheSynth->IsLoadingState()) //if turning on
233 {
234 if (GetSliderTarget())
235 {
236 GetMin() = GetSliderTarget()->GetValue();
237 GetMax() = GetSliderTarget()->GetValue();
238 }
239 }
240
241 mEnabled = enabled;
242}
243
244void FloatSliderLFOControl::SetOwner(FloatSlider* owner)
245{

Callers 6

OnMidiNoteMethod · 0.80
InitMethod · 0.80
DisplayLFOControlMethod · 0.80
DisableLFOMethod · 0.80
LoadStateMethod · 0.80
OnCommitMethod · 0.80

Calls 2

IsLoadingStateMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected