|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ritornello.core.conceitual.Note
Field Summary | |
static int |
DOUBLE_FLAT
The double flat note value. |
static int |
DOUBLE_SHARP
The double sharp note value. |
static int |
FLAT
The flat note value. |
static int |
NATURAL
The natural note value. |
static int |
SHARP
The sharp note value. |
Constructor Summary | |
Note(PitchName pitchName,
int accident)
Constructor. |
Method Summary | |
boolean |
equals(Note note)
Compares two notes, based on their pitch name and accident. |
int |
getAccident()
Gets the note accident. |
java.lang.String |
getAccidentName()
Retrieves the accident name, given its code. |
java.util.Vector |
getChords()
|
java.lang.String |
getName()
Retrieves the note name. |
PitchName |
getPitchName()
Returns the pitch name related to the note. |
java.util.Vector |
getScales()
|
static void |
main(java.lang.String[] argv)
Test unit. |
void |
setAccident(int accident)
Sets the note accident. |
void |
setPitchName(PitchName pitchName)
Sets the pitch name. |
java.lang.String |
toString()
Retrieves the note name by default. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NATURAL
public static final int SHARP
public static final int DOUBLE_SHARP
public static final int FLAT
public static final int DOUBLE_FLAT
Constructor Detail |
public Note(PitchName pitchName, int accident) throws ValidationException
pitchName
- - A note's pitch name.accident
- - A note accident (e.g. Natural(0), #(+1), b(-1), ##(+2),
bb(-2)).
ValidationException
Method Detail |
public java.util.Vector getChords()
public java.util.Vector getScales()
public int getAccident()
public void setAccident(int accident) throws ValidationException
accident
- - A note accident (e.g. Natural(0), #(+1), b(-1), ##(+2),
bb(-2)).
ValidationException
public java.lang.String getAccidentName()
public PitchName getPitchName()
public boolean equals(Note note)
note
- - A note to compare.
public void setPitchName(PitchName pitchName)
pitchName
- - The pitch name.public static void main(java.lang.String[] argv)
argv
- - The command line arguments.public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |