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

Method PostRepatch

Source/NoteRouter.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void NoteRouter::PostRepatch(PatchCableSource* cableSource, bool fromUserClick)
116{
117 INoteSource::PostRepatch(cableSource, fromUserClick);
118
119 for (int i = 0; i < (int)mDestinationCables.size(); ++i)
120 {
121 if (cableSource == mDestinationCables[i]->GetPatchCableSource())
122 {
123 IClickable* target = cableSource->GetTarget();
124 std::string name = target ? target->Name() : " ";
125 mRouteSelector->SetLabel(name.c_str(), i);
126 }
127 }
128}
129
130void NoteRouter::GetModuleDimensions(float& width, float& height)
131{

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
GetPatchCableSourceMethod · 0.45
GetTargetMethod · 0.45
NameMethod · 0.45
SetLabelMethod · 0.45

Tested by

no test coverage detected