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

java.lang.Object
  extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommandParser
      extended by edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MetaCommandParser
All Implemented Interfaces:
RawMidiMessageParser.Parser
Direct Known Subclasses:
CopyrightParser, CuePointParser, KeySignatureParser, LyricParser, MarkerParser, SetTempoParser, TextParser, TimeSignatureParser, TrackEndParser, TrackInstrumentNameParser, TrackNameParser, TrackSequenceNumberParser

public class MetaCommandParser
extends MidiCommandParser

Parses a generic meta-command. This parser does not attempt to figure out what kind of meta command it is seeing.

See Also:
MetaCommand

Nested Class Summary
static class MetaCommandParser.Command
           
 
Constructor Summary
MetaCommandParser()
           
 
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

MetaCommandParser

public MetaCommandParser()
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 MidiCommandParser
Parameters:
mm - the message to parse
Returns:
a midi command or null