|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ritornello.core.conceitual.PitchName
Field Summary | |
static int |
DO
The DO note value. |
static int |
FA
The FA note value. |
static int |
LA
The LA note value. |
static int |
MI
The MI note value. |
static int |
NUMBER_OF_PITCH_NAMES
The number of pitch names. |
static int |
RE
The RE note value. |
static int |
SI
The SI note value. |
static int |
SOL
The SOL note value. |
Constructor Summary | |
PitchName(int value)
Constructor. |
Method Summary | |
int |
getBack()
Returns the last element. |
java.lang.String |
getName()
Retrieves the pitch name's name. |
int |
getNext()
Returns the next element. |
int |
getValue()
Retrieves the pitch name value for a note. |
int |
goTo(int amount)
Go to an sequencial position foward or back, given its amount of steps. |
void |
setValue(int value)
Sets the pitch name value for a note. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DO
public static final int RE
public static final int MI
public static final int FA
public static final int SOL
public static final int LA
public static final int SI
public static final int NUMBER_OF_PITCH_NAMES
Constructor Detail |
public PitchName(int value) throws ValidationException
value
- - A pitch name note representation (e.g. DO = 1, RE = 2, ...., SI
= 7).
ValidationException
Method Detail |
public int getValue()
public void setValue(int value) throws ValidationException
value
- - A note's pitch name representation (e.g. DO = 1, RE = 2, ....,
SI = 7).
ValidationException
public java.lang.String getName()
public int getNext()
Rollable
getNext
in interface Rollable
public int getBack()
Rollable
getBack
in interface Rollable
public int goTo(int amount)
Rollable
goTo
in interface Rollable
amount
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |