|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jazz.core.Song
| Field Summary | |
protected java.util.Vector |
changes
|
protected java.lang.String |
name
|
protected int |
numMeasures
|
| Constructor Summary | |
Song()
|
|
Song(java.lang.String name)
|
|
Song(java.lang.String name,
int numMeasures)
|
|
| Method Summary | |
void |
addChordChange(ChordChange change)
Adds a chord change into the right place chronologically |
int |
beatsUntilNextChange(int measure,
int beat)
Return the number of beats before the next change |
void |
caclulateChordFunctions()
Calculate chord functions for all chords in a song |
ChordChange |
chordAtBeat(int measure,
int beat)
Return the actual chord at a given measure and beat |
java.lang.Object |
clone()
|
int |
distanceBetweenChords(int i1,
int i2)
Return the number of beats between chord changes delta_m is the difference in measures delta_b is the difference in beats |
ChordChange |
getChordChange(int i)
Get the chord change at a given index. |
ChordChange |
getCyclicalChordChange(int i)
Return the chord change for a given index. |
java.lang.String |
getName()
|
int |
getNumMeasures()
|
int |
indexAtBeat(int measure,
int beat)
Return the index of the chord change at a given beat |
int |
intervalBetweenChords(int i1,
int i2)
Return the interval between the first and second chords. |
protected boolean |
is_ii_in_iiVI(int i,
boolean setFunction)
Determine whether a chord is a ii in a ii-V-I |
protected boolean |
isStrictlyDominant(int i,
boolean setFunction)
Return whether or not a chord is strictly dominant |
protected boolean |
isStrictlyDominant(int i,
Pitch tonic,
boolean setFunction)
Return whether or not a chord is strictly dominant relative to a tonic |
protected boolean |
isTonic(int i,
boolean setFunction)
Determine if a given chord is a tonic. |
void |
removeChordChange(ChordChange c)
Remove a given chord change. |
void |
removeChordChangeAt(int index)
Remove the chord change at a given index. |
void |
setNumMeasures(int numMeasures)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector changes
protected java.lang.String name
protected int numMeasures
| Constructor Detail |
public Song()
public Song(java.lang.String name)
public Song(java.lang.String name,
int numMeasures)
| Method Detail |
public java.lang.String getName()
public void setNumMeasures(int numMeasures)
public int getNumMeasures()
public int size()
public void addChordChange(ChordChange change)
public ChordChange getChordChange(int i)
public ChordChange getCyclicalChordChange(int i)
public int intervalBetweenChords(int i1,
int i2)
public int indexAtBeat(int measure,
int beat)
public ChordChange chordAtBeat(int measure,
int beat)
public void removeChordChangeAt(int index)
public void removeChordChange(ChordChange c)
public int beatsUntilNextChange(int measure,
int beat)
public int distanceBetweenChords(int i1,
int i2)
protected boolean isStrictlyDominant(int i,
boolean setFunction)
protected boolean isStrictlyDominant(int i,
Pitch tonic,
boolean setFunction)
protected boolean isTonic(int i,
boolean setFunction)
protected boolean is_ii_in_iiVI(int i,
boolean setFunction)
public void caclulateChordFunctions()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||