|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.music.tonality.ChordMode
public class ChordMode
This class provides static methods to operate on int arrays rerpesenting chord modes. A chord mode is the mode derived from a particular index into a Scale. So called because it 'contains' every diatonic chord from that index of a Scale. Constants SECUNDAL, TERTIAN and QUARTAL are provided for typical chord construction.
Field Summary | |
---|---|
static int |
QUARTAL
Diminished or perfect fourths. |
static int |
SECUNDAL
Minor or major seconds. |
static int |
TERTIAN
Minor or major thirds (conventional chord construction). |
Method Summary | |
---|---|
static int[] |
getIntervals(int[] chordMode,
int poly,
int lowInterval)
|
static boolean |
hasInterval(int[] chordMode,
int interval)
Return whether the chord mode contains the specified interval. |
static int |
interval(int[] chordMode,
int index)
Return the interval of the index of the chord mode |
static int |
interval(int[] chordMode,
int index1,
int index2)
Return the interval from index1 to index2 of the chord mode If index2 is less than index1, the interval for index2 is raised by an octave |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SECUNDAL
public static final int TERTIAN
public static final int QUARTAL
Method Detail |
---|
public static int interval(int[] chordMode, int index)
chordMode
- the intevals of the chord modeindex
-
public static int interval(int[] chordMode, int index1, int index2)
chordMode
- the intevals of the chord modeindex1
- index2
-
public static int[] getIntervals(int[] chordMode, int poly, int lowInterval)
chordMode
- the intervals of the chord modepoly
- the requested polyphony 1..7 but less intervals may be returnedlowInterval
- SECUNDAL, TERTIAN or QUARTAL
the lower of the two allowed intervals, add 1 for higher allowed interval
tertian may be two octaves of intervals
so secundal will be less than 2 octaves of intervals?
and quartal may be more than 2 octaves of intervals?
public static boolean hasInterval(int[] chordMode, int interval)
chordMode
- the intervals of the chord modeinterval
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |