com.softsynth.jmsl.midi
Class MidiIO_MidiPortLegacy
java.lang.Object
com.softsynth.jmsl.midi.MidiIO
com.softsynth.jmsl.midi.MidiIO_MidiPortLegacy
- All Implemented Interfaces:
- Editable, MusicDevice, java.lang.Runnable
public class MidiIO_MidiPortLegacy
- extends MidiIO
- implements java.lang.Runnable
Uses Robert Marsanyi's jmidi package to provide MIDI access. Use this if you are using an early
version of MidiPort (pre v5) that does not have MidiPortMessage
This class is a singleton with a private constructor.
Use MidiIO_MidiPortLegacy.instance() instead of new MidiIO_MidiPortLegacy()
- Author:
- Robert Marsanyi, Nick Didkovsky
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, main, 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_MidiPortLegacy instance()
- Returns:
- singleton instance of this class
openDevices
public void openDevices(int inDevice,
int outDevice)
- Deprecated. setInDevice(), setOutDevice(), then open()
- 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
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()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable