|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.ParserListenerAdapter
org.jfugue.DurationPatternTool
public class DurationPatternTool
Calculates the length of the given pattern, in milliseconds
| Constructor Summary | |
|---|---|
DurationPatternTool()
|
|
| Method Summary | |
|---|---|
long |
getDuration()
|
void |
noteEvent(Note note)
Called when the parser encounters an initial note event. |
void |
reset()
|
void |
voiceEvent(Voice voice)
Called when the parser encounters a voice event. |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DurationPatternTool()
| Method Detail |
|---|
public void voiceEvent(Voice voice)
ParserListenerAdapter
voiceEvent in interface ParserListenervoiceEvent in class ParserListenerAdaptervoice - the event that has been parsedVoicepublic void noteEvent(Note note)
ParserListenerAdapter
noteEvent in interface ParserListenernoteEvent in class ParserListenerAdapternote - the event that has been parsedNotepublic void reset()
public long getDuration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||