public static enum PiezoTonePlayer.PiezoTonePlayerNote extends java.lang.Enum<PiezoTonePlayer.PiezoTonePlayerNote>
Enum Constant and Description |
---|
PIEZO_NOTE_A
A
|
PIEZO_NOTE_AIS
A#
|
PIEZO_NOTE_B
B
|
PIEZO_NOTE_C
C
|
PIEZO_NOTE_CIS
C#
|
PIEZO_NOTE_D
D
|
PIEZO_NOTE_DIS
D#
|
PIEZO_NOTE_E
E
|
PIEZO_NOTE_F
F
|
PIEZO_NOTE_FIS
F#
|
PIEZO_NOTE_G
G
|
PIEZO_NOTE_GIS
G#
|
Modifier and Type | Method and Description |
---|---|
static PiezoTonePlayer.PiezoTonePlayerNote |
fromInteger(int note) |
int |
getValue() |
static PiezoTonePlayer.PiezoTonePlayerNote |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PiezoTonePlayer.PiezoTonePlayerNote[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_C
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_CIS
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_D
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_DIS
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_E
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_F
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_FIS
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_G
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_GIS
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_A
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_AIS
public static final PiezoTonePlayer.PiezoTonePlayerNote PIEZO_NOTE_B
public static PiezoTonePlayer.PiezoTonePlayerNote[] values()
for (PiezoTonePlayer.PiezoTonePlayerNote c : PiezoTonePlayer.PiezoTonePlayerNote.values()) System.out.println(c);
public static PiezoTonePlayer.PiezoTonePlayerNote 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static PiezoTonePlayer.PiezoTonePlayerNote fromInteger(int note)