com.softsynth.jmsl.midi
Class MidiIO_MidiPort
java.lang.Object
com.softsynth.jmsl.midi.MidiIO
com.softsynth.jmsl.midi.MidiIO_MidiPort
- All Implemented Interfaces:
- Editable, MusicDevice, java.lang.Runnable
public class MidiIO_MidiPort
- extends MidiIO
- implements java.lang.Runnable
Uses Robert Marsanyi's jmidi package (MidiPort) to provide MIDI access.
Methods inherited from class com.softsynth.jmsl.midi.MidiIO |
addEditListener, addMidiParser, allNotesOff, allNotesOff, bendPitch, bendPitch, clearMidiLog, close, control, control, controlContinuous, controlContinuous, createMidiIO, edit, getEditEnabled, getInDevice, getMidiParser, getOutDevice, getQuiet, logMessage, logMessage, noteOff, noteOff, noteOff, noteOff, noteOn, noteOn, open, printMidiLog, programChange, programChange, removeEditListener, removeMidiParser, scheduleMessage, setEditEnabled, setInDevice, setMidiLogging, setOutDevice, setQuiet, sysex, test1, test2, test3, writeMidiFile |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static MidiIO_MidiPort instance()
- Returns:
- singleton instance of this class
openDevices
public void openDevices(int inDevice,
int outDevice)
- Specified by:
openDevices
in class MidiIO
closeDevices
public void closeDevices()
- Specified by:
closeDevices
in class MidiIO
sendMessage
public void sendMessage(int status,
int data1,
int data2)
- Specified by:
sendMessage
in class MidiIO
sendMessage
public void sendMessage(double timeStamp,
int status,
int data1,
int data2)
- Specified by:
sendMessage
in class MidiIO
getInputDeviceNames
public java.lang.String[] getInputDeviceNames()
- Specified by:
getInputDeviceNames
in class MidiIO
getOutputDeviceNames
public java.lang.String[] getOutputDeviceNames()
- Specified by:
getOutputDeviceNames
in class MidiIO
startListening
public void startListening()
- Specified by:
startListening
in class MidiIO
stopListening
public void stopListening()
- Specified by:
stopListening
in class MidiIO
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
sysex
public void sysex(double timeStamp,
byte[] data)
- Not implemented
- Specified by:
sysex
in class MidiIO
synchClocks
public void synchClocks()
- unimplemented
- Specified by:
synchClocks
in class MidiIO
- See Also:
MidiIO.synchClocks()
main
public static void main(java.lang.String[] args)