|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPChordDiagram
This class describes a chord diagram.
Field Summary | |
private int |
addedNote
add: byte Allows to determine if a 'add' (added note) is present in the chord. |
private int[] |
barreEnds
Barre end: List of 5 Bytes Indicates the first string of the barre, 1 being the lowest. |
private int[] |
barreStarts
Barre start: List of 5 Bytes Indicates the first string of the barre, 1 being the highest. |
private int |
baseFret
Base fret: Integer Shows the fret from which the chord is displayed. |
private GPChordNote |
bass
Bass: Integer Lowest note of the chord. |
private boolean |
chordFingeringDisplayed
ShowDiagFingering: byte if it is 0x01, the chord fingering is displayed. |
private GPChordType |
chordType
Determines the chord type as followed: - 0: M - 1: 7 - 2: 7M - 3: 6 - 4: m - 5: m7 - 6: m7M - 7: m6 - 8: sus2 - 9: sus4 - 10: 7sus2 - 11: 7sus4 - 12: dim - 13: aug - 14: 5 |
private GPFingering[] |
fingering
Fingering: List of 7 Bytes Describes the fingering used to play the chord. |
private int[] |
fretOfBarres
Fret of the barre: List of 5 Bytes Indicates the fret number of each possible barre. |
private int[] |
frets
Frets: List of 7 integers. |
private boolean |
isSharp
Determines if the chord is displayed sharp or flat. |
private java.lang.String |
name
Name: String 20 characters long string containing the chord name. |
private int |
nineElevenThirteen
Nine, Eleven of Thirteen: byte Determines if the chord goes until the ninth, the eleventh, or the thirteenth. |
private int |
numBarres
Number of barres: byte Indicates the number of barres there are in the chord. |
private GPChordNote |
root
The root of the Diagram (-1 for the customized chords, 0 when root is C,1 = C#...) |
private GPTonalityType |
tonalityEleven
Eleventh: byte Tonality of the eleventh: 0: perfect ("juste") 1: augmented 2: diminished this tonality is valid only if the value "Nine, Eleven or Thirteen" is 13. |
private GPTonalityType |
tonalityFive
Fifth: byte Tonality of the fifth: 0: perfect ("juste") 1: augmented 2: diminished |
private GPTonalityType |
tonalityNine
Ninth: byte Tonality of the ninth: 0: perfect ("juste") 1: augmented 2: diminished this tonality is valid only if the value "Nine, Eleven or Thirteen" is 11 or 13. |
private GPTonalityType |
tonalityType
Diminished/Augmented Integer Tonality linked with 9/11/13: 0: perfect ("juste") 1: augmented 2: diminished |
Constructor Summary | |
GPChordDiagram()
Creates a new instance of ChordDiagram |
Method Summary | |
void |
setAddedNote(int addedNote)
|
void |
setBarreEnd(int pos,
int barre)
|
void |
setBarreStart(int pos,
int barre)
|
void |
setBaseFret(int baseFret)
|
void |
setBass(GPChordNote bass)
|
void |
setchordFingeringDisplayed(boolean value)
|
void |
setChordType(GPChordType CT)
|
void |
setFingering(int pos,
int finger)
|
void |
setFret(int pos,
int fret)
|
void |
setFretOfBarre(int pos,
int fret)
|
void |
setName(java.lang.String name)
|
void |
setNineElevenThirteen(int NET)
|
void |
setNumBarres(int numBarres)
|
void |
setRoot(GPChordNote root)
|
void |
setSharp(boolean isSharp)
|
void |
setTonalityEleven(GPTonalityType TT)
|
void |
setTonalityFive(GPTonalityType TT)
|
void |
setTonalityNine(GPTonalityType TT)
|
void |
setTonalityType(GPTonalityType TT)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean isSharp
private GPChordNote root
private GPChordType chordType
private int nineElevenThirteen
private GPChordNote bass
private GPTonalityType tonalityType
private int addedNote
private java.lang.String name
private GPTonalityType tonalityFive
private GPTonalityType tonalityNine
private GPTonalityType tonalityEleven
private int baseFret
private int[] frets
private int numBarres
private int[] fretOfBarres
private int[] barreStarts
private int[] barreEnds
private GPFingering[] fingering
private boolean chordFingeringDisplayed
Constructor Detail |
public GPChordDiagram()
Method Detail |
public void setSharp(boolean isSharp)
public void setRoot(GPChordNote root)
public void setChordType(GPChordType CT)
public void setNineElevenThirteen(int NET)
public void setBass(GPChordNote bass)
public void setTonalityType(GPTonalityType TT)
public void setAddedNote(int addedNote)
public void setName(java.lang.String name)
public void setTonalityFive(GPTonalityType TT)
public void setTonalityNine(GPTonalityType TT)
public void setTonalityEleven(GPTonalityType TT)
public void setBaseFret(int baseFret)
public void setFret(int pos, int fret)
public void setNumBarres(int numBarres)
public void setFretOfBarre(int pos, int fret)
public void setBarreStart(int pos, int barre)
public void setBarreEnd(int pos, int barre)
public void setFingering(int pos, int finger)
public void setchordFingeringDisplayed(boolean value)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |