I hope I've picked the right location for this post.
I am a beginner with processing and with Java in general. I'm trying to figure out how to simply construct a midi note on message and send it to an internal midi port application, that can then route it to a software synthesizer.
I'm using javax.sound.midi for this, and processing 2.0b6.
This is some code I have written to check what devices exist:
However, every single one of those devices, if it is not in the try, catch block that discards MidiUnavailableException, will throw just that exception. Yet none of my devices should be in use for anything, so I'm not sure why all of them throw this error. Any thoughts?
The catch block never executes, even though I know that particular exception is encountered (in fact it's encountered for every single one of my midi devices when I iterate through "infos" - but that's another topic). If I change the line inside the catch block to throw a general exception, it executes. But printing, assigning values to variables, etc. never execute inside the catch block.