|
||||||||||
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.DurationPatternTool
public class DurationPatternTool
Calculates the length of the given pattern, in pulses per quarter (PPQ)
Constructor Summary | |
---|---|
DurationPatternTool()
|
Method Summary | |
---|---|
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 |
noteEvent(Note note)
Called when the parser encounters an initial note event. |
void |
reset()
Resets the variables in a subclass of PatternTool. |
void |
voiceEvent(Voice voice)
Called when the parser encounters a voice event. |
Methods inherited from class org.jfugue.PatternTool |
---|
execute |
Methods inherited from class org.jfugue.ParserListenerAdapter |
---|
channelPressureEvent, controllerEvent, instrumentEvent, keySignatureEvent, layerEvent, measureEvent, parallelNoteEvent, pitchBendEvent, polyphonicPressureEvent, sequentialNoteEvent, tempoEvent, timeEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DurationPatternTool()
Method Detail |
---|
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 noteEvent(Note note)
ParserListenerAdapter
noteEvent
in interface ParserListener
noteEvent
in class ParserListenerAdapter
note
- the event that has been parsedNote
public void reset()
PatternTool
reset
in class PatternTool
public java.lang.Object getResult()
PatternTool
getResult
in class PatternTool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |