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

Method InitController

Source/LinnstrumentControl.cpp:82–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void LinnstrumentControl::InitController()
83{
84 BuildControllerList();
85
86 const std::vector<std::string>& devices = mDevice.GetPortList(false);
87 for (int i = 0; i < devices.size(); ++i)
88 {
89 if (strstr(devices[i].c_str(), "LinnStrument") != nullptr)
90 {
91 mControllerIndex = i;
92 mDevice.ConnectOutput(i);
93 mDevice.ConnectInput(devices[i].c_str());
94 UpdateScaleDisplay();
95 break;
96 }
97 }
98}
99
100void LinnstrumentControl::DrawModule()
101{

Callers

nothing calls this directly

Calls 4

GetPortListMethod · 0.80
sizeMethod · 0.80
ConnectInputMethod · 0.80
ConnectOutputMethod · 0.45

Tested by

no test coverage detected