Interface MidiListener

All Known Implementing Classes:
DefaultMidiListener, JSynMIDIPlayer, LabelMidiListener, MidiInputExample, MidiInputTest, MidiListenerAdapter, MidiNoteRecorder, MidiParserNoteOnInputTest, MidiParserTest, MidiRecorderTest

public interface MidiListener
MidiListener.java
Any class that wishes to receive notification of Midi input events must implement this interface and register itself with MidiParser.

For example:
MidiParser parser = new MidiParser();
JMSL.midi.addMidiParser( parser );
parser.addMidiListener(new MyMidiListener());
See DefaultMidiListener for an example of a MidiListener that simply prints incoming messages.
See JMSLTestSuite.TestMidiParser for an example of initing Midi, listening/printing incoming Midi for a while, then closing down.
Author:
Phil Burk and Nick Didkovsky (C) 1997 Phil Burk and Nick Didkovsky, All Rights Reserved
JMSL is based upon HMSL (C) Phil Burk, Larry Polansky and David Rosenboom.
See Also:
DefaultMidiListener
  • 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)  
  • Method Details

    • handleNoteOn

      void handleNoteOn​(double timeStamp, int channel, int pitch, int velocity)
    • handleNoteOff

      void handleNoteOff​(double timeStamp, int channel, int pitch, int velocity)
    • handlePolyphonicAftertouch

      void handlePolyphonicAftertouch​(double timeStamp, int channel, int pitch, int pressure)
    • handleControlChange

      void handleControlChange​(double timeStamp, int channel, int id, int value)
    • handleProgramChange

      void handleProgramChange​(double timeStamp, int channel, int program)
    • handleChannelAftertouch

      void handleChannelAftertouch​(double timeStamp, int channel, int pressure)
    • handlePitchBend

      void handlePitchBend​(double timeStamp, int channel, int lsb, int msb)
    • handleSysEx

      void handleSysEx​(double timeStamp, byte[] data)