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

Method OnRemovedFrom

Source/IModulator.cpp:135–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void IModulator::OnRemovedFrom(IUIControl* control)
136{
137 if (mTargetCable)
138 {
139 auto& cables = mTargetCable->GetPatchCables();
140 for (size_t i = 0; i < mTargets.size(); ++i)
141 {
142 for (auto& cable : cables)
143 {
144 if (cable->GetTarget() == control && cable->GetTarget() == mTargets[i].mUIControlTarget)
145 {
146 mTargetCable->RemovePatchCable(cable);
147 break;
148 }
149 }
150 }
151 }
152 OnModulatorRepatch();
153}
154
155void IModulator::InitializeRange(float currentValue, float min, float max, FloatSlider::Mode sliderMode)
156{

Callers 1

SetModulatorMethod · 0.80

Calls 3

sizeMethod · 0.80
RemovePatchCableMethod · 0.80
GetTargetMethod · 0.45

Tested by

no test coverage detected