Class MidiParser

java.lang.Object
org.jjazz.midi.api.parser.MidiParser

public class MidiParser extends Object
  • Field Details

  • Constructor Details

    • MidiParser

      public MidiParser()
  • Method Details

    • parse

      public void parse(Sequence sequence, String name)
      Parse the Midi sequence track by track and notifies the registered parsers.
      Parameters:
      sequence -
      name - Optional name use when logging errors. Can be null.
    • parseEvent

      public void parseEvent(MidiEvent event)
      Parses the following messages:
      Note On events ,Note Off events ,Polyphonic Aftertouch ,Controller Events ,Program Change (instrument changes) ,Channel Aftertouch ,Pitch Wheel
      Meta Events: Tempo, Lyric, Marker, Key Signature, Time Signature, Marker, Text, TrackName
      SysEx Events

      Any other MIDI messages (particularly, other Meta Events) are not handled by this MidiParser.

      You may implement an AuxilliaryMidiParser to know when MidiParser has parsed or not parsed a given MIDI message.

      Parameters:
      event - the event to parse
      See Also:
    • addParserListener

      public void addParserListener(MidiParserListener listener)
    • removeParserListener

      public void removeParserListener(MidiParserListener listener)
    • addAuxilliaryMidiParser

      public void addAuxilliaryMidiParser(MidiParser.AuxilliaryMidiParser auxilliaryParser)
    • removeAuxilliaryMidiParser

      public void removeAuxilliaryMidiParser(MidiParser.AuxilliaryMidiParser auxilliaryParser)
    • fireBeforeParsingStarts

      public void fireBeforeParsingStarts()
    • fireAfterParsingFinished

      public void fireAfterParsingFinished()