MidiTest: Setting up MIDI input/output |
import jm.JMC; |
The MidiCommunication class contains the MIDI goodness so we extend it.
The class requires that you override the handleMidiInput() method that is called when MIDI data arrives.
When a new instance of the (MidiCommunication) class is instantiated you will be presented with two consecutive popup windows. These will list the available MIDI ports. In the first, choose your preferred MIDI input port. In the second, your preferred MIDI output port.
Add a sendMidiOutput(int status, int channel, int data1, int data2) method to pass data tot eh selected external MIDI port.
See the javaDoc for more information:
http://explodingart.com/jmusic/jmDocumentation/index.html
| |
|
|
|
|