Modifier and Type | Field | Description |
---|---|---|
static byte |
TONES_COUNT |
The number of tones including sharped tones.
|
Modifier and Type | Method | Description |
---|---|---|
static Note.Tone |
getById(byte id) |
Deprecated.
Magic value
|
byte |
getId() |
Deprecated.
Magic value
|
byte |
getId(boolean sharped) |
Deprecated.
Magic value
|
boolean |
isSharpable() |
Returns if this tone could be sharped.
|
boolean |
isSharped(byte id) |
Deprecated.
Magic value
|
static Note.Tone |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Note.Tone[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Note.Tone G
public static final Note.Tone A
public static final Note.Tone B
public static final Note.Tone C
public static final Note.Tone D
public static final Note.Tone E
public static final Note.Tone F
public static final byte TONES_COUNT
public static Note.Tone[] values()
for (Note.Tone c : Note.Tone.values()) System.out.println(c);
public static Note.Tone 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 null@Deprecated public byte getId()
@Deprecated public byte getId(boolean sharped)
sharped
- Set to true to return the sharped id.public boolean isSharpable()
@Deprecated public boolean isSharped(byte id)
id
- the id of the tone.java.lang.IllegalArgumentException
- if neither the tone nor the
semitone have the id.@Deprecated public static Note.Tone getById(byte id)
id
- the id of the tone.Copyright © 2018. All rights reserved.