|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.MusicalEffects
public class MusicalEffects
EXPERIMENTAL - Contains a variety of static methods that create Patterns that play various musical ornaments
| Constructor Summary | |
|---|---|
MusicalEffects()
|
|
| Method Summary | |
|---|---|
static Pattern |
hammerOn(Note note1,
Note note2,
double duration,
int numHammers)
Returns a Pattern that plays two notes in rapid succession (for a total of each note being played numHammers times) over the given duration. |
static Pattern |
slide(Note note1,
Note note2,
double duration,
int numSteps)
Returns a Pattern that plays a slide between two notes over the given duration. |
static Pattern |
trill(Note note1,
Note note2,
double duration,
int numSteps)
Right now, this is a pass-through to hammerOn() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MusicalEffects()
| Method Detail |
|---|
public static Pattern hammerOn(Note note1,
Note note2,
double duration,
int numHammers)
note1 - First note to playnote2 - Second note to playduration - Value representing total duration for the resulting pattern. 1.0=whole notenumHammers - Number of times to repeat each note
public static Pattern slide(Note note1,
Note note2,
double duration,
int numSteps)
public static Pattern trill(Note note1,
Note note2,
double duration,
int numSteps)
hammerOn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||