|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.PatternTransformer
org.jfugue.extras.DurationPatternTransformer
public class DurationPatternTransformer
The DurationPatternTransformer multiplies the duration of all notes in the given Pattern by a factor passed as a parameter.
This transformer can be used to increase or decrease the duration of notes. To increase the duration, use a variable greater than 1.0. To decrease the duration, use a value less than 1.0. The default value for this transformer is 1.0, which will result in no change to your Pattern.
For general information on how Pattern Transformers work, refer to the JFugue documentation.
| Constructor Summary | |
|---|---|
DurationPatternTransformer(double factor)
Instantiates a new DurationPatternTransformer object. |
|
| Method Summary | |
|---|---|
void |
noteEvent(Note note)
Transforms the given note |
void |
parallelNoteEvent(Note note)
Transforms the given note |
void |
sequentialNoteEvent(Note note)
Transforms the given note |
| Methods inherited from class org.jfugue.PatternTransformer |
|---|
channelPressureEvent, controllerEvent, instrumentEvent, keySignatureEvent, layerEvent, measureEvent, pitchBendEvent, polyphonicPressureEvent, tempoEvent, timeEvent, transform, voiceEvent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DurationPatternTransformer(double factor)
| Method Detail |
|---|
public void noteEvent(Note note)
noteEvent in interface ParserListenernoteEvent in class PatternTransformernote - the event that has been parsedNotepublic void sequentialNoteEvent(Note note)
sequentialNoteEvent in interface ParserListenersequentialNoteEvent in class PatternTransformernote - the event that has been parsedNotepublic void parallelNoteEvent(Note note)
parallelNoteEvent in interface ParserListenerparallelNoteEvent in class PatternTransformernote - the event that has been parsedNote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||