|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfugue.ParserListenerAdapter
org.jfugue.PatternTool
org.jfugue.extras.GetPatternForVoiceTool
public class GetPatternForVoiceTool
Returns all of the MusicString events that are played in the requested Voice (i.e., Channel)
Constructor Summary | |
---|---|
GetPatternForVoiceTool(int voice)
|
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. |
java.lang.String |
getDescription()
Indicates what this PatternTool does. |
java.lang.Object |
getResult()
Returns the result of the pattern tool after it has been executed on a pattern. |
void |
instrumentEvent(Instrument instrument)
Called when the parser encounters an instrument event. |
void |
keySignatureEvent(KeySignature keySig)
Key Signature changes affect the voice regardless of what voice they appear to be in |
void |
layerEvent(Layer layer)
Called when the parser encounters a layer event. |
static void |
main(java.lang.String[] args)
|
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 |
reset()
Resets the variables in a subclass of PatternTool. |
void |
sequentialNoteEvent(Note note)
Called when the parser encounters a sequential note event. |
void |
tempoEvent(Tempo tempo)
Tempo changes affect the voice regardless of what voice they appear to be in |
void |
timeEvent(Time time)
Called when the parser encounters a time event. |
void |
voiceEvent(Voice voice)
Called when the parser encounters a voice event. |
Methods inherited from class org.jfugue.PatternTool |
---|
execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetPatternForVoiceTool(int voice)
Method Detail |
---|
public void reset()
PatternTool
reset
in class PatternTool
public java.lang.String getDescription()
PatternTool
getDescription
in class PatternTool
public void voiceEvent(Voice voice)
ParserListenerAdapter
voiceEvent
in interface ParserListener
voiceEvent
in class ParserListenerAdapter
voice
- the event that has been parsedVoice
public void tempoEvent(Tempo tempo)
tempoEvent
in interface ParserListener
tempoEvent
in class ParserListenerAdapter
tempo
- the event that has been parsedTempo
public void keySignatureEvent(KeySignature keySig)
keySignatureEvent
in interface ParserListener
keySignatureEvent
in class ParserListenerAdapter
KeySignature
public void instrumentEvent(Instrument instrument)
instrumentEvent
in interface ParserListener
instrumentEvent
in class ParserListenerAdapter
instrument
- the event that has been parsedInstrument
public void layerEvent(Layer layer)
layerEvent
in interface ParserListener
layerEvent
in class ParserListenerAdapter
layer
- the event that has been parsedLayer
public void measureEvent(Measure measure)
measureEvent
in interface ParserListener
measureEvent
in class ParserListenerAdapter
measure
- the event that has been parsedMeasure
public void timeEvent(Time time)
timeEvent
in interface ParserListener
timeEvent
in class ParserListenerAdapter
time
- the event that has been parsedTime
public void controllerEvent(Controller controller)
controllerEvent
in interface ParserListener
controllerEvent
in class ParserListenerAdapter
controller
- the event that has been parsedpublic void channelPressureEvent(ChannelPressure channelPressure)
channelPressureEvent
in interface ParserListener
channelPressureEvent
in class ParserListenerAdapter
channelPressure
- the event that has been parsedChannelPressure
public void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
polyphonicPressureEvent
in interface ParserListener
polyphonicPressureEvent
in class ParserListenerAdapter
polyphonicPressure
- the event that has been parsedPolyphonicPressure
public void pitchBendEvent(PitchBend pitchBend)
pitchBendEvent
in interface ParserListener
pitchBendEvent
in class ParserListenerAdapter
pitchBend
- the event that has been parsedPitchBend
public void noteEvent(Note note)
noteEvent
in interface ParserListener
noteEvent
in class ParserListenerAdapter
note
- the event that has been parsedNote
public void sequentialNoteEvent(Note note)
sequentialNoteEvent
in interface ParserListener
sequentialNoteEvent
in class ParserListenerAdapter
note
- the event that has been parsedNote
public void parallelNoteEvent(Note note)
parallelNoteEvent
in interface ParserListener
parallelNoteEvent
in class ParserListenerAdapter
note
- the event that has been parsedNote
public java.lang.Object getResult()
PatternTool
getResult
in class PatternTool
public static final void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |