|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jazz.core.Chord
| Field Summary | |
protected java.util.Vector |
pitches
|
static int |
QUAL_EXT_ELEVENTH_REG
|
static int |
QUAL_EXT_ELEVENTH_SHARP
|
static int |
QUAL_EXT_NINTH_FLAT
|
static int |
QUAL_EXT_NINTH_REG
|
static int |
QUAL_EXT_NINTH_SHARP
|
static int |
QUAL_EXT_THIRTEENTH_FLAT
|
static int |
QUAL_EXT_THIRTEENTH_REG
|
static int |
QUAL_EXT_UNKNOWN
|
static int |
QUAL_FIFTH_AUG
|
static int |
QUAL_FIFTH_DIM
|
static int |
QUAL_FIFTH_REG
|
static int |
QUAL_FIFTH_UNKNOWN
|
static int |
QUAL_GEN_DOM_SEVENTH
|
static int |
QUAL_GEN_MAJ_SEVENTH
|
static int |
QUAL_GEN_MIN_MAJ_SEVENTH
|
static int |
QUAL_GEN_MIN_SEVENTH
|
static int |
QUAL_GEN_UNKNOWN
|
| Constructor Summary | |
Chord()
|
|
Chord(Chord c)
|
|
Chord(Chord c,
int root)
|
|
Chord(Chord c,
Pitch root)
|
|
| Method Summary | |
int |
addChordPitch(ChordPitch cp)
Add a pitch to a given chord in the appropriate place |
ChordPitch |
chordPitchAt(int i)
Return the pitch at a given index in the chord Note that the first 4 pitches are the 1, 3, 5, 7 (in that order) |
java.lang.Object |
clone()
|
int |
findDissonanceOf(int pitchNumber)
Find the dissonance of a given pitch |
int |
getExtensions()
Return a bit vector of extensions |
java.lang.String |
getFullName()
Get the full name of the chord as a string Functionally, the full name is (root + general quality + extensions) |
int |
getFullQuality()
Return the full quality of a chord |
int |
getGeneralQuality()
Return a bit vector indicating major / minor / dominant quality and type of fifth |
ChordPitch |
getRoot()
Return the root (the first pitch) for a given chord |
int |
halfStepsFromRoot(ChordPitch cp)
|
int |
halfStepsFromRoot(int pitchNumber)
|
int |
halfStepsFromRoot(Pitch p)
Return the number of half steps (between 0 and 11) between a pitch and the root of the chord |
static java.lang.String |
qualityToString(int quality)
Return a String for a given chord quality |
void |
remChordPitch(int pitchNum)
Remove a chord from a pitch. |
int |
size()
Return the number of pitches currently in the chord |
java.lang.String |
toString()
|
void |
transpose(int halfSteps)
Transpose a chord by a given number of half steps |
void |
transpose(Pitch pitch)
Transpose a chord to have a new pitch as it's root |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int QUAL_GEN_UNKNOWN
public static int QUAL_GEN_MAJ_SEVENTH
public static int QUAL_GEN_DOM_SEVENTH
public static int QUAL_GEN_MIN_SEVENTH
public static int QUAL_GEN_MIN_MAJ_SEVENTH
public static int QUAL_FIFTH_REG
public static int QUAL_FIFTH_AUG
public static int QUAL_FIFTH_DIM
public static int QUAL_FIFTH_UNKNOWN
public static int QUAL_EXT_NINTH_REG
public static int QUAL_EXT_NINTH_FLAT
public static int QUAL_EXT_NINTH_SHARP
public static int QUAL_EXT_ELEVENTH_REG
public static int QUAL_EXT_ELEVENTH_SHARP
public static int QUAL_EXT_THIRTEENTH_REG
public static int QUAL_EXT_THIRTEENTH_FLAT
public static int QUAL_EXT_UNKNOWN
protected java.util.Vector pitches
| Constructor Detail |
public Chord()
public Chord(Chord c)
public Chord(Chord c,
int root)
public Chord(Chord c,
Pitch root)
| Method Detail |
public int size()
public ChordPitch chordPitchAt(int i)
public ChordPitch getRoot()
public void transpose(Pitch pitch)
public void transpose(int halfSteps)
public int getGeneralQuality()
public int getExtensions()
public int getFullQuality()
public java.lang.String getFullName()
public void remChordPitch(int pitchNum)
public int addChordPitch(ChordPitch cp)
public int findDissonanceOf(int pitchNumber)
public int halfStepsFromRoot(Pitch p)
public int halfStepsFromRoot(ChordPitch cp)
public int halfStepsFromRoot(int pitchNumber)
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String qualityToString(int quality)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||