mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 12:25:05 +00:00
more MIDI debug messages
This commit is contained in:
parent
7dc3dc96c4
commit
04bbffac13
1 changed files with 11 additions and 3 deletions
|
@ -75,8 +75,12 @@ bool TAMidiInRtMidi::openDevice(String name) {
|
|||
try {
|
||||
bool portOpen=false;
|
||||
unsigned int count=port->getPortCount();
|
||||
logD("finding port %s...",name);
|
||||
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);
|
||||
portOpen=true;
|
||||
break;
|
||||
|
@ -184,8 +188,12 @@ bool TAMidiOutRtMidi::openDevice(String name) {
|
|||
try {
|
||||
bool portOpen=false;
|
||||
unsigned int count=port->getPortCount();
|
||||
logD("finding port %s...",name);
|
||||
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);
|
||||
portOpen=true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue