more MIDI debug messages

This commit is contained in:
tildearrow 2022-06-09 16:54:14 -05:00
parent 7dc3dc96c4
commit 04bbffac13

View file

@ -75,8 +75,12 @@ bool TAMidiInRtMidi::openDevice(String name) {
try { try {
bool portOpen=false; bool portOpen=false;
unsigned int count=port->getPortCount(); unsigned int count=port->getPortCount();
logD("finding port %s...",name);
for (unsigned int i=0; i<count; i++) { for (unsigned int i=0; i<count; i++) {
if (port->getPortName(i)==name) { String portName=port->getPortName(i);
logV("- %d: %s",i,portName);
if (portName==name) {
logD("opening port %d...",i);
port->openPort(i); port->openPort(i);
portOpen=true; portOpen=true;
break; break;
@ -184,8 +188,12 @@ bool TAMidiOutRtMidi::openDevice(String name) {
try { try {
bool portOpen=false; bool portOpen=false;
unsigned int count=port->getPortCount(); unsigned int count=port->getPortCount();
logD("finding port %s...",name);
for (unsigned int i=0; i<count; i++) { for (unsigned int i=0; i<count; i++) {
if (port->getPortName(i)==name) { String portName=port->getPortName(i);
logV("- %d: %s",i,portName);
if (portName==name) {
logD("opening port %d...",i);
port->openPort(i); port->openPort(i);
portOpen=true; portOpen=true;
break; break;