Skip to content

Commit

Permalink
Attempt to continue on MIDIIn.connect errors (but report error text)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Harkins committed May 4, 2016
1 parent 43626e5 commit 4cfeea3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MIDIPort.sc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ MIDIPort {
sourceInports.do({ arg sourceIndex, i;
var port = this.portForSource(extSources.tryPerform(\at, sourceIndex).tryPerform(\uid));
if(port.src.device != "fake") {
MIDIIn.connect(i, port.src); // connect it
try {
MIDIIn.connect(i, port.src); // connect it
} { |err|
err.reportError;
"^^^ WARNING Error during MIDIPort init, attempting to continue".postln;
};
};
});
srctemp = MIDIEndPoint("All devices", "All devices", 0x80000001);
Expand Down

0 comments on commit 4cfeea3

Please sign in to comment.