|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.music.tonality.Chord
public class Chord
An immutable Chord. No mutators.
Nested Class Summary | |
---|---|
static class |
Chord.AbstractProgression
|
static class |
Chord.CountdownProgression
|
static class |
Chord.I_bIII_bVI_bII_TurnAround
|
static class |
Chord.ii_V7_I_I_Progression
|
static class |
Chord.PitchedVoicing
A PitchedVoicing is an aggregation of a Voicing and a root pitch. |
static interface |
Chord.Progression
A Progression is a list of chords, each with their offset to a nominal root. |
static class |
Chord.RelativeVoicing
|
static class |
Chord.Voicing
A Chord.Voicing is an aggregation of a theoretical root position (i.e uninverted) Chord with all voicing information such as missing intervals and (one day) octave transpositions of present intervals. |
Constructor Summary | |
---|---|
Chord(java.lang.String aSymbol,
java.lang.String aSpelling,
java.lang.String aName)
|
Method Summary | |
---|---|
int[] |
getIntervals()
Get the intervals |
java.lang.String |
getName()
Get the name. |
int |
getPoly()
Get the polyphony |
java.lang.String |
getSpelling()
Get the spelling. |
java.lang.String |
getSymbol()
Get the symbol. |
boolean |
matchesChordMode(int[] chordMode)
Return whether every interval of this chord is contained within the chordMode |
boolean |
matchesIntervals(int[] someIntervals)
Return true if someIntervals exactly matches our intervals. |
int[] |
missingIntervals(int[] someIntervals,
int missing)
Returns an array of missing interval indices if someIntervals matches our intervals with exactly missing intervals missing. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Chord(java.lang.String aSymbol, java.lang.String aSpelling, java.lang.String aName)
Method Detail |
---|
public java.lang.String getSymbol()
public java.lang.String getSpelling()
public java.lang.String getName()
public int[] getIntervals()
public int getPoly()
public boolean matchesIntervals(int[] someIntervals)
someIntervals
- the intervals to match to our intervals
public int[] missingIntervals(int[] someIntervals, int missing)
public boolean matchesChordMode(int[] chordMode)
chordMode
- the chord mode to match
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |