Package jmslexamples.simple
Class MidiInputExample
java.lang.Object
jmslexamples.simple.MidiInputExample
- All Implemented Interfaces:
MidiListener
public class MidiInputExample extends java.lang.Object implements MidiListener
-
Constructor Summary
Constructors Constructor Description MidiInputExample()
-
Method Summary
Modifier and Type Method Description void
handleChannelAftertouch(double timeStamp, int channel, int pressure)
void
handleControlChange(double timeStamp, int channel, int id, int value)
void
handleNoteOff(double timeStamp, int channel, int pitch, int velocity)
void
handleNoteOn(double timeStamp, int channel, int pitch, int velocity)
void
handlePitchBend(double timeStamp, int channel, int lsb, int msb)
void
handlePolyphonicAftertouch(double timeStamp, int channel, int pitch, int pressure)
void
handleProgramChange(double timeStamp, int channel, int program)
void
handleSysEx(double timeStamp, byte[] data)
static void
main(java.lang.String[] args)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MidiInputExample
public MidiInputExample()
-
-
Method Details
-
handleNoteOn
public void handleNoteOn(double timeStamp, int channel, int pitch, int velocity)- Specified by:
handleNoteOn
in interfaceMidiListener
-
handleNoteOff
public void handleNoteOff(double timeStamp, int channel, int pitch, int velocity)- Specified by:
handleNoteOff
in interfaceMidiListener
-
handlePolyphonicAftertouch
public void handlePolyphonicAftertouch(double timeStamp, int channel, int pitch, int pressure)- Specified by:
handlePolyphonicAftertouch
in interfaceMidiListener
-
handleControlChange
public void handleControlChange(double timeStamp, int channel, int id, int value)- Specified by:
handleControlChange
in interfaceMidiListener
-
handleProgramChange
public void handleProgramChange(double timeStamp, int channel, int program)- Specified by:
handleProgramChange
in interfaceMidiListener
-
handleChannelAftertouch
public void handleChannelAftertouch(double timeStamp, int channel, int pressure)- Specified by:
handleChannelAftertouch
in interfaceMidiListener
-
handlePitchBend
public void handlePitchBend(double timeStamp, int channel, int lsb, int msb)- Specified by:
handlePitchBend
in interfaceMidiListener
-
handleSysEx
public void handleSysEx(double timeStamp, byte[] data)- Specified by:
handleSysEx
in interfaceMidiListener
-
main
public static void main(java.lang.String[] args)
-