org.jfugue
Interface ParserListener

All Known Implementing Classes:
ParserListenerAdapter, PatternTransformer, Renderer

public interface ParserListener

Classes that implement ParserListener and add themselves as listeners to a Parser object will receive events when the Parser inteprets tokens from a Music String.

Version:
2.0
Author:
David Koelle
See Also:
Parser

Method Summary
 void controllerEvent(Controller controller)
          Called when the parser encounters a controller event.
 void instrumentEvent(Instrument instrument)
          Called when the parser encounters a instrument event.
 void noteEvent(Note note)
          Called when the parser encounters an initial note event.
 void parallelNoteEvent(Note note)
          Called when the parser encounters a parallel note event.
 void sequentialNoteEvent(Note note)
          Called when the parser encounters a sequential note event.
 void tempoEvent(Tempo tempo)
          Called when the parser encounters a tempo event.
 void voiceEvent(Voice voice)
          Called when the parser encounters a voice event.
 

Method Detail

voiceEvent

public void voiceEvent(Voice voice)
Called when the parser encounters a voice event.
Parameters:
voice - the event that has been parsed

tempoEvent

public void tempoEvent(Tempo tempo)
Called when the parser encounters a tempo event.
Parameters:
tempo - the event that has been parsed

instrumentEvent

public void instrumentEvent(Instrument instrument)
Called when the parser encounters a instrument event.
Parameters:
instrument - the event that has been parsed

controllerEvent

public void controllerEvent(Controller controller)
Called when the parser encounters a controller event.
Parameters:
controller - the event that has been parsed

noteEvent

public void noteEvent(Note note)
Called when the parser encounters an initial note event.
Parameters:
note - the event that has been parsed

sequentialNoteEvent

public void sequentialNoteEvent(Note note)
Called when the parser encounters a sequential note event.
Parameters:
note - the event that has been parsed

parallelNoteEvent

public void parallelNoteEvent(Note note)
Called when the parser encounters a parallel note event.
Parameters:
note - the event that has been parsed