| 170 | } |
| 171 | |
| 172 | std::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 | |
| 190 | void MidiDevice::SendNote(double time, int pitch, int velocity, bool forceNoteOn, int channel) |
| 191 | { |
no outgoing calls
no test coverage detected