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

Method SetOwner

Source/FloatSliderLFOControl.cpp:244–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void FloatSliderLFOControl::SetOwner(FloatSlider* owner)
245{
246 if (GetSliderTarget() == owner)
247 return;
248
249 if (GetSliderTarget() != nullptr)
250 {
251 GetSliderTarget()->SetLFO(nullptr);
252 }
253
254 if (owner != nullptr)
255 owner->SetLFO(this);
256
257 mTargets[0].mSliderTarget = owner;
258 mTargets[0].mUIControlTarget = owner;
259
260 if (GetSliderTarget() != nullptr)
261 InitializeRange(GetSliderTarget()->GetValue(), GetSliderTarget()->GetMin(), GetSliderTarget()->GetMax(), GetSliderTarget()->GetMode());
262}
263
264void FloatSliderLFOControl::RandomizeSettings()
265{

Callers 3

GetLFOMethod · 0.45
PrefabMethod · 0.45
MultitrackRecorderMethod · 0.45

Calls 5

GetModeMethod · 0.80
SetLFOMethod · 0.45
GetValueMethod · 0.45
GetMinMethod · 0.45
GetMaxMethod · 0.45

Tested by

no test coverage detected