D
dmkoelle
I'm writing a Java application that takes MIDI events from an external
device (a Casio keyboard) and prints out the MIDI events of the notes
that I'm playing.
My problem is that after I run the program once, I can't open the
device again!
It seems that whether or not I call close() on an instance of a
MidiDevice, I get
"javax.sound.midi.MidiUnavailableException: Failed to open the device."
the next time I run my application.
In addition, if I try to undock the USB connection to my Casio
keyboard, Windows tells me I can't do that, because the device is still
being used.
Any ideas?
Thank you!
-Dave
device (a Casio keyboard) and prints out the MIDI events of the notes
that I'm playing.
My problem is that after I run the program once, I can't open the
device again!
It seems that whether or not I call close() on an instance of a
MidiDevice, I get
"javax.sound.midi.MidiUnavailableException: Failed to open the device."
the next time I run my application.
In addition, if I try to undock the USB connection to my Casio
keyboard, Windows tells me I can't do that, because the device is still
being used.
Any ideas?
Thank you!
-Dave