|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.PatternTransformer
org.jfugue.extras.DiatonicIntervalPatternTransformer
public class DiatonicIntervalPatternTransformer
The DiatonicIntervalPatternTransformer transposes all notes in the given Pattern by a diatonic interval (1 -- unison, 2 -- second, ... 8 -- octave, etc.). It only handles upward motion and assumes the key of C. However, it could be used in conjunction with IntervalPatternTransformer to change to another key and/or perform downward motion.
For general information on how Pattern Transformers work, refer to the JFugue documentation.
| Constructor Summary | |
|---|---|
DiatonicIntervalPatternTransformer(int interval)
|
|
| 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 DiatonicIntervalPatternTransformer(int interval)
interval - Number of diatonic intervals by which to change each note, can be only positive| 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 | |||||||||