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

Method FindUIControl

Source/ModularSynth.cpp:2686–2697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686IUIControl* ModularSynth::FindUIControl(std::string path)
2687{
2688 if (path == "")
2689 return nullptr;
2690 if (path[0] == '$')
2691 {
2692 if (Prefab::sLoadingPrefab)
2693 return nullptr;
2694 return mModuleContainer.FindUIControl(path.substr(1, path.length() - 1));
2695 }
2696 return mModuleContainer.FindUIControl(IClickable::sPathLoadContext + path);
2697}
2698
2699void ModularSynth::GrabSample(ChannelBuffer* data, std::string name, bool window, int numBars)
2700{

Callers 15

SetUpFromSaveDataMethod · 0.45
LoadStateMethod · 0.45
oscMessageReceivedMethod · 0.45
AddControlConnectionMethod · 0.45
SetUIControlMethod · 0.45
LoadStateMethod · 0.45
SetUpFromSaveDataMethod · 0.45
LoadStateMethod · 0.45
LoadStateMethod · 0.45
PollMethod · 0.45
GetUIControlMethod · 0.45
LoadLayoutMethod · 0.45

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected