|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NoteReference>
midiReference.NoteReference
public enum NoteReference
Enum containing the basic note information at octave 0.
Enum Constant Summary | |
---|---|
A
Base Number 9, Note Name "A" |
|
Aflat
Base Number 8, Note Name "Ab" |
|
Asharp
Base Number 10, Note Name "A#" |
|
B
Base Number 11, Note Name "B" |
|
Bflat
Base Number 10, Note Name "Bb" |
|
C
Base Number 0, Note Name "C" |
|
Csharp
Base Number 1, Note Name "C#" |
|
D
Base Number 2, Note Name "D" |
|
Dflat
Base Number 1, Note Name "Db" |
|
Dsharp
Base Number 3, Note Name "D#" |
|
E
Base Number 4, Note Name "E" |
|
Eflat
Base Number 3, Note Name "Eb" |
|
F
Base Number 5, Note Name "F" |
|
Fsharp
Base Number 6, Note Name "F#" |
|
G
Base Number 7, Note Name "G" |
|
Gflat
Base Number 6, Note Name "Gb" |
|
Gsharp
Base Number 8, Note Name "G#" |
Method Summary | |
---|---|
static NoteReference |
get(java.lang.String baseName)
Reverse lookup of a NoteReference based on the abbreviation passed in. |
int |
getBaseNumber()
This method gets the base note number of the note at octave 0. |
static NoteReference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NoteReference[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NoteReference C
public static final NoteReference Csharp
public static final NoteReference Dflat
public static final NoteReference D
public static final NoteReference Dsharp
public static final NoteReference Eflat
public static final NoteReference E
public static final NoteReference F
public static final NoteReference Fsharp
public static final NoteReference Gflat
public static final NoteReference G
public static final NoteReference Gsharp
public static final NoteReference Aflat
public static final NoteReference A
public static final NoteReference Asharp
public static final NoteReference Bflat
public static final NoteReference B
Method Detail |
---|
public static final NoteReference[] values()
for(NoteReference c : NoteReference.values()) System.out.println(c);
public static NoteReference 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 namepublic int getBaseNumber()
public static NoteReference get(java.lang.String baseName)
baseName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |