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

Method PostRepatch

Source/Ramper.cpp:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void Ramper::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
131{
132 for (size_t i = 0; i < mUIControls.size(); ++i)
133 {
134 if (i < mControlCable->GetPatchCables().size())
135 {
136 mUIControls[i] = dynamic_cast<IUIControl*>(mControlCable->GetPatchCables()[i]->GetTarget());
137 if (i == 0)
138 {
139 FloatSlider* floatSlider = dynamic_cast<FloatSlider*>(mUIControls[i]);
140 if (floatSlider)
141 mTargetValueSlider->MatchExtents(floatSlider);
142 }
143 }
144 else
145 {
146 mUIControls[i] = nullptr;
147 }
148 }
149}
150
151void Ramper::Go(double time)
152{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
MatchExtentsMethod · 0.80
GetTargetMethod · 0.45

Tested by

no test coverage detected