|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.music.tonality.Interval
public class Interval
This class provides static methods to simplify the handling of intervals (which are just ints). An interval is the number of semitones between two pitches and is fundamental to the definition of Scales and Chords. Symbolic constants are provided for intervals of up to one octave.
Field Summary | |
---|---|
static int |
AUGMENTED_FIFTH
|
static int |
AUGMENTED_FOURTH
|
static int |
DIMINISHED_FIFTH
|
static int |
DIMINISHED_SEVENTH
|
static int |
MAJOR_SECOND
|
static int |
MAJOR_SEVENTH
|
static int |
MAJOR_SIXTH
|
static int |
MAJOR_THIRD
|
static int |
MINOR_SECOND
|
static int |
MINOR_SEVENTH
|
static int |
MINOR_SIXTH
|
static int |
MINOR_THIRD
|
static int |
OCTAVE
|
static int |
PERFECT_FIFTH
|
static int |
PERFECT_FOURTH
|
static int |
UNISON
|
Method Summary | |
---|---|
static int |
classValue(int interval)
Return the interval class for an interval. |
static java.lang.String |
name(int interval)
Return the traditional name for an interval. |
static java.lang.String |
spell(int interval)
Return a jazz type representation of an interval of up to two octaves. |
static java.lang.String |
spell(int[] intervals)
Return a jazz type representation of an array of intervals of up to two octaves. |
static int |
spelt(java.lang.String s)
Return an interval of up to two octaves corresponding to the jazz type spelling. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNISON
public static final int MINOR_SECOND
public static final int MAJOR_SECOND
public static final int MINOR_THIRD
public static final int MAJOR_THIRD
public static final int PERFECT_FOURTH
public static final int AUGMENTED_FOURTH
public static final int DIMINISHED_FIFTH
public static final int PERFECT_FIFTH
public static final int AUGMENTED_FIFTH
public static final int MINOR_SIXTH
public static final int MAJOR_SIXTH
public static final int DIMINISHED_SEVENTH
public static final int MINOR_SEVENTH
public static final int MAJOR_SEVENTH
public static final int OCTAVE
Method Detail |
---|
public static int classValue(int interval)
interval
- the interval
public static java.lang.String name(int interval)
interval
-
public static java.lang.String spell(int interval)
interval
-
public static java.lang.String spell(int[] intervals)
intervals
- the array of intervals
public static int spelt(java.lang.String s)
s
- the spelling
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |