Skip to content

Commit

Permalink
[examples] Add id to midiprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 26, 2024
1 parent 71d4ed1 commit 9b358a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/midiprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ int main()
// Check inputs.
auto ports = midi.get_input_ports();
std::cout << ports.size() << " MIDI input sources:\n";
int i = 0;
for (auto& port : ports)
std::cout << " - " << port << '\n';
std::cout << " - " << i++ << ": " << port << '\n';
}

{
// Check outputs.
auto ports = midi.get_output_ports();
std::cout << ports.size() << " MIDI output sinks:\n";
int i = 0;
for (auto& port : ports)
std::cout << " - " << port << '\n';
std::cout << " - " << i++ << ": " << port << '\n';
}

std::cout << "\n";
Expand Down

0 comments on commit 9b358a4

Please sign in to comment.