|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.music.tonality.Scale
public class Scale
A Scale is a list of intervals. Melodies are derived from a scale. Chords are derived from the modes of a scale, aka chord modes.
| Constructor Summary | |
|---|---|
Scale(java.lang.String name,
int[] intervals)
Constructor |
|
| Method Summary | |
|---|---|
int[] |
getChordMode(int index)
Derive the Chord Mode for the specified index into this Scale. |
int[] |
getIntervals()
|
int |
getIntervalsAsInt()
|
java.lang.String |
getName()
|
boolean |
hasInterval(int index,
int val)
|
int |
interval(int index)
Return the interval of the specified index into this Scale. |
int |
interval(int index1,
int index2)
Return the interval between the specified indices into this Scale. |
int |
length()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scale(java.lang.String name,
int[] intervals)
| Method Detail |
|---|
public int length()
public java.lang.String getName()
public int[] getIntervals()
public int getIntervalsAsInt()
public int interval(int index)
index - the index into this Scale.
public int interval(int index1,
int index2)
index1 - the index of the lower intervalindex2 - the index of the higher interval
public int[] getChordMode(int index)
index - the index into this Scale
public boolean hasInterval(int index,
int val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||