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

Method GetPortList

Source/MidiDevice.cpp:172–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172std::vector<std::string> MidiDevice::GetPortList(bool forInput)
173{
174 std::vector<std::string> portList;
175
176 if (forInput)
177 {
178 for (auto& device : MidiInput::getAvailableDevices())
179 portList.push_back(device.name.toStdString());
180 }
181 else
182 {
183 for (auto& device : MidiOutput::getAvailableDevices())
184 portList.push_back(device.name.toStdString());
185 }
186
187 return portList;
188}
189
190void MidiDevice::SendNote(double time, int pitch, int velocity, bool forceNoteOn, int channel)
191{

Callers 9

InitializeMethod · 0.80
InitControllerMethod · 0.80
BuildControllerListMethod · 0.80
InitDeviceMethod · 0.80
BuildDeviceListMethod · 0.80
InitDeviceMethod · 0.80
BuildDeviceListMethod · 0.80
InitControllerMethod · 0.80
BuildControllerListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected