|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MidiNote.Note> sky.monome.util.scale.MidiNote.Note
public static enum MidiNote.Note
Octave note.
Enum Constant Summary | |
---|---|
A
Denotes a A note. |
|
A_FLAT
Denotes a Ab note. |
|
A_SHARP
Denotes a A# note. |
|
B
Denotes a B note. |
|
B_FLAT
Denotes a Bb note. |
|
C
Denotes a C note. |
|
C_SHARP
Denotes a C# note. |
|
D
Denotes a D note. |
|
D_FLAT
Denotes a Db note. |
|
D_SHARP
Denotes a D# note. |
|
E
Denotes a E note. |
|
E_FLAT
Denotes a Eb note. |
|
F
Denotes a F note. |
|
F_SHARP
Denotes a F# note. |
|
G
Denotes a G note. |
|
G_FLAT
Denotes a Gb note. |
|
G_SHARP
Denotes a G# note. |
|
NaN
Denotes that this octave note is not a note (Not a Note). |
Method Summary | |
---|---|
MidiNote.Note |
getNextSemitone()
Returns the octave note which represents the next semitone after this octave note. |
MidiNote.Note |
getNextTone()
Returns the octave note which represents the next tone after this octave note. |
int |
getNumberInOctave()
Returns the rank in the octave of this octave note. |
MidiNote.Note |
getOffsettedNote(int offset)
Returns the octave note which is the result of the specified offset applied on this octave note. |
MidiNote.Note |
getPreviousSemitone()
Returns the octave note which represents the previous semitone before this octave note. |
MidiNote.Note |
getPreviousTone()
Returns the octave note which represents the previous tone before this octave note. |
static MidiNote.Note |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MidiNote.Note[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MidiNote.Note NaN
public static final MidiNote.Note C
public static final MidiNote.Note C_SHARP
public static final MidiNote.Note D_FLAT
public static final MidiNote.Note D
public static final MidiNote.Note D_SHARP
public static final MidiNote.Note E_FLAT
public static final MidiNote.Note E
public static final MidiNote.Note F
public static final MidiNote.Note F_SHARP
public static final MidiNote.Note G_FLAT
public static final MidiNote.Note G
public static final MidiNote.Note G_SHARP
public static final MidiNote.Note A_FLAT
public static final MidiNote.Note A
public static final MidiNote.Note A_SHARP
public static final MidiNote.Note B_FLAT
public static final MidiNote.Note B
Method Detail |
---|
public static MidiNote.Note[] values()
for (MidiNote.Note c : MidiNote.Note.values()) System.out.println(c);
public static MidiNote.Note valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic MidiNote.Note getOffsettedNote(int offset)
offset
- Offset to apply to this octave note.
public int getNumberInOctave()
public MidiNote.Note getNextSemitone()
public MidiNote.Note getPreviousSemitone()
public MidiNote.Note getNextTone()
public MidiNote.Note getPreviousTone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |