org.jfugue
Interface ParserListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DiatonicIntervalPatternTransformer, DurationPatternTool, DurationPatternTransformer, EasyAnticipatorListener, GetPatternForVoiceTool, IntervalPatternTransformer, IntervalTransformer, MidiRenderer, MusicStringRenderer, ParserListenerAdapter, PatternTool, PatternTransformer, ReversePatternTransformer, StreamingMidiRenderer

public interface ParserListener
extends java.util.EventListener

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:
3.0
Author:
David Koelle
See Also:
MusicStringParser

Method Summary
 void channelPressureEvent(ChannelPressure channelPressure)
          Called when the parser encounters a channel pressure event.
 void controllerEvent(Controller controller)
          Called when the parser encounters a controller event.
 void instrumentEvent(Instrument instrument)
          Called when the parser encounters an instrument event.
 void keySignatureEvent(KeySignature keySig)
          Called when the parser encounters a key signature event.
 void layerEvent(Layer layer)
          Called when the parser encounters a layer event.
 void measureEvent(Measure measure)
          Called when the parser encounters a measure 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 pitchBendEvent(PitchBend pitchBend)
          Called when the parser encounters a pitch bend event.
 void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
          Called when the parser encounters a polyphonic pressure 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 timeEvent(Time time)
          Called when the parser encounters a time event.
 void voiceEvent(Voice voice)
          Called when the parser encounters a voice event.
 

Method Detail

voiceEvent

void voiceEvent(Voice voice)
Called when the parser encounters a voice event.

Parameters:
voice - the event that has been parsed
See Also:
Voice

tempoEvent

void tempoEvent(Tempo tempo)
Called when the parser encounters a tempo event.

Parameters:
tempo - the event that has been parsed
See Also:
Tempo

instrumentEvent

void instrumentEvent(Instrument instrument)
Called when the parser encounters an instrument event.

Parameters:
instrument - the event that has been parsed
See Also:
Instrument

layerEvent

void layerEvent(Layer layer)
Called when the parser encounters a layer event.

Parameters:
layer - the event that has been parsed
See Also:
Layer

measureEvent

void measureEvent(Measure measure)
Called when the parser encounters a measure event.

Parameters:
measure - the event that has been parsed
See Also:
Measure

timeEvent

void timeEvent(Time time)
Called when the parser encounters a time event.

Parameters:
time - the event that has been parsed
See Also:
Time

keySignatureEvent

void keySignatureEvent(KeySignature keySig)
Called when the parser encounters a key signature event.

Parameters:
time - the event that has been parsed
See Also:
KeySignature

controllerEvent

void controllerEvent(Controller controller)
Called when the parser encounters a controller event.

Parameters:
controller - the event that has been parsed

channelPressureEvent

void channelPressureEvent(ChannelPressure channelPressure)
Called when the parser encounters a channel pressure event.

Parameters:
channelPressure - the event that has been parsed
See Also:
ChannelPressure

polyphonicPressureEvent

void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
Called when the parser encounters a polyphonic pressure event.

Parameters:
polyphonicPressure - the event that has been parsed
See Also:
PolyphonicPressure

pitchBendEvent

void pitchBendEvent(PitchBend pitchBend)
Called when the parser encounters a pitch bend event.

Parameters:
pitchBend - the event that has been parsed
See Also:
PitchBend

noteEvent

void noteEvent(Note note)
Called when the parser encounters an initial note event.

Parameters:
note - the event that has been parsed
See Also:
Note

sequentialNoteEvent

void sequentialNoteEvent(Note note)
Called when the parser encounters a sequential note event.

Parameters:
note - the event that has been parsed
See Also:
Note

parallelNoteEvent

void parallelNoteEvent(Note note)
Called when the parser encounters a parallel note event.

Parameters:
note - the event that has been parsed
See Also:
Note