com.softsynth.jmsl.midi
Class LabelMidiListener

java.lang.Object
  extended by com.softsynth.jmsl.midi.LabelMidiListener
All Implemented Interfaces:
MidiListener

public class LabelMidiListener
extends java.lang.Object
implements MidiListener

MidiListener that sets text on Label of incoming Midi messages
See MidiParser

Author:
Nick Didkovsky 4/99

Constructor Summary
LabelMidiListener(PVLabel myLabel)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelMidiListener

public LabelMidiListener(PVLabel myLabel)
Method Detail

handleNoteOn

public void handleNoteOn(double timeStamp,
                         int channel,
                         int pitch,
                         int velocity)
Specified by:
handleNoteOn in interface MidiListener

handleNoteOff

public void handleNoteOff(double timeStamp,
                          int channel,
                          int pitch,
                          int velocity)
Specified by:
handleNoteOff in interface MidiListener

handlePolyphonicAftertouch

public void handlePolyphonicAftertouch(double timeStamp,
                                       int channel,
                                       int pitch,
                                       int pressure)
Specified by:
handlePolyphonicAftertouch in interface MidiListener

handleControlChange

public void handleControlChange(double timeStamp,
                                int channel,
                                int id,
                                int value)
Specified by:
handleControlChange in interface MidiListener

handleProgramChange

public void handleProgramChange(double timeStamp,
                                int channel,
                                int program)
Specified by:
handleProgramChange in interface MidiListener

handleChannelAftertouch

public void handleChannelAftertouch(double timeStamp,
                                    int channel,
                                    int pressure)
Specified by:
handleChannelAftertouch in interface MidiListener

handlePitchBend

public void handlePitchBend(double timeStamp,
                            int channel,
                            int lsb,
                            int msb)
Specified by:
handlePitchBend in interface MidiListener

handleSysEx

public void handleSysEx(double timeStamp,
                        byte[] data)
Specified by:
handleSysEx in interface MidiListener