|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dguitar.codecs.guitarPro.GPHarmonic
This class describes an harmonic.
Field Summary | |
private static GPHarmonic[] |
_harmonics
The harmonics. |
private static java.lang.String[] |
_harmonicStrings
The slides' names. |
private int |
_index
|
private int |
_type
An harmonic is represented by an integer. |
static GPHarmonic |
ARTIFICIAL_12
Artificial + 12. |
static GPHarmonic |
ARTIFICIAL_5
Artificial + 5. |
static GPHarmonic |
ARTIFICIAL_7
Artificial + 7. |
private static int[] |
harmonicValues
This declaration must be located before any other static final GPHarmonic |
static GPHarmonic |
NATURAL
Natural. |
static GPHarmonic |
NONE
None. |
static GPHarmonic |
PITCH
Pitch. |
static GPHarmonic |
SEMI
Semi. |
static GPHarmonic |
TAPPED
Tapped. |
Constructor Summary | |
private |
GPHarmonic(int value)
Creates a new Harmonic whose type is type . |
Method Summary | |
private static int |
indexOf(int value)
Returns the index of the harmonic of type value . |
java.lang.String |
toString()
Returns a string representation of this Harmonic. |
static GPHarmonic |
valueOf(int value)
Returns the GPHarmonic associated with the value type . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int _index
private int _type
private static int[] harmonicValues
public static final GPHarmonic NONE
public static final GPHarmonic NATURAL
public static final GPHarmonic TAPPED
public static final GPHarmonic PITCH
public static final GPHarmonic SEMI
public static final GPHarmonic ARTIFICIAL_5
public static final GPHarmonic ARTIFICIAL_7
public static final GPHarmonic ARTIFICIAL_12
private static GPHarmonic[] _harmonics
private static java.lang.String[] _harmonicStrings
Constructor Detail |
private GPHarmonic(int value)
type
.
value
- the harmonic's value.Method Detail |
public java.lang.String toString()
private static int indexOf(int value)
value
.
value
- the harmonic type as an integer.
public static GPHarmonic valueOf(int value)
type
.
value
- the harmonic integer value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |