|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmusiccreator.ChordDef
public class ChordDef
Implements the ChordDef class, which is a pattern upon which Chords are built. A ChordDef is a "keyless" chord - it defines the root of a chord relative to tonic and the intervals in that chord.
Constructor Summary | |
---|---|
ChordDef()
Creates a new instance of ChordDef; defaults to tonic |
Method Summary | |
---|---|
void |
addNote(java.lang.Integer note)
Add the specified note to the chord at the next index |
int |
get(int index)
Get the note at the given index, an integer value between 0 and 11. |
boolean |
IsDiatonic()
|
java.lang.String |
Name()
Get the name of this chord |
void |
outputToConsole()
Output ChordDef to console for debugging... |
void |
SetDiatonic(boolean d)
|
void |
SetName(java.lang.String n)
|
int |
size()
Get the number of notes in the chord |
void |
trimToSize()
Trims the memory space taken by the internal vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChordDef()
Method Detail |
---|
public java.lang.String Name()
public void SetName(java.lang.String n)
n
- Name to give the chordpublic boolean IsDiatonic()
public void SetDiatonic(boolean d)
d
- Sets whether chord is diatonicpublic void outputToConsole()
public int size()
public void addNote(java.lang.Integer note)
note
- public void trimToSize()
public int get(int index)
index
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |