|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ritornello.core.conceitual.Note | +--ritornello.core.playable.PlayableNote
Field Summary | |
static int |
MAX_OCTAVE
The max octave number. |
static int |
MIN_OCTAVE
The min octave number. |
Fields inherited from class ritornello.core.conceitual.Note |
DOUBLE_FLAT, DOUBLE_SHARP, FLAT, NATURAL, SHARP |
Constructor Summary | |
PlayableNote(PitchName pitchName,
int accident,
int octave)
Constructor. |
Method Summary | |
boolean |
equals(PlayableNote note)
Compares two notes, based on their pitch name, accident and octave. |
Lapse |
getLapse()
|
int |
getOctave()
Returns the note's octave. |
void |
setLapse(Lapse lapse)
|
void |
setOctave(int octave)
Sets the note's octave. |
Methods inherited from class ritornello.core.conceitual.Note |
equals, getAccident, getAccidentName, getChords, getName, getPitchName, getScales, main, setAccident, setPitchName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAX_OCTAVE
public static final int MIN_OCTAVE
Constructor Detail |
public PlayableNote(PitchName pitchName, int accident, int octave) throws ValidationException
pitchName
- - A note pitch name (e.g. DO, RE, MI...).accident
- - A note accident (e.g. Natural(0), #(+1), b(-1), ##(+2),
bb(-2)).octave
- - A note octave (e.g. a MIDDLE C has octave equals to 6).
ValidationException
Method Detail |
public void setLapse(Lapse lapse)
setLapse
in interface PlayableElement
lapse
- public Lapse getLapse()
getLapse
in interface PlayableElement
public int getOctave()
public void setOctave(int octave) throws ValidationException
octave
- - The note's octave.
ValidationException
public boolean equals(PlayableNote note)
note
- - The note to compare.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |