edu.columbia.ee.csmit.MidiKaraoke.MidiMessage
Class ProgramChangeParser

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser
      extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandWithChannelParser
          extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.ProgramChangeParser
All Implemented Interfaces:
RawMidiMessageParser.Parser

public class ProgramChangeParser
extends MidiCommandWithChannelParser

Parses a program change command.

See Also:
ProgramChange

Constructor Summary
ProgramChangeParser()
           
 
Method Summary
 MidiCommand parse(javax.sound.midi.MidiMessage mm)
          If this parser recognizes mm, it should return a parsed midi message.
 
Methods inherited from class edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser
parseString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramChangeParser

public ProgramChangeParser()
Method Detail

parse

public MidiCommand parse(javax.sound.midi.MidiMessage mm)
Description copied from interface: RawMidiMessageParser.Parser
If this parser recognizes mm, it should return a parsed midi message. Otherwise it should return null.

Specified by:
parse in interface RawMidiMessageParser.Parser
Overrides:
parse in class MidiCommandWithChannelParser
Parameters:
mm - the message to parse
Returns:
a midi command or null