限定符和类型 | 字段和说明 |
---|---|
static byte |
TONES_COUNT
音调的数量。
|
限定符和类型 | 方法和说明 |
---|---|
static Note.Tone |
getById(byte id)
已过时。
不安全的参数
|
byte |
getId()
已过时。
不安全的参数
|
byte |
getId(boolean sharped)
已过时。
不安全的参数
|
boolean |
isSharpable()
返回音调是否能被升高。
|
boolean |
isSharped(byte id)
已过时。
不安全的参数
|
static Note.Tone |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Note.Tone[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值@Deprecated public byte getId()
原文: Returns the not sharped id of this tone.
@Deprecated public byte getId(boolean sharped)
原文: Returns the id of this tone. These method allows to return the sharped id of the tone. If the tone couldn't be sharped it always return the not sharped id of this tone.
sharped
- 设为true则返回升高的IDpublic boolean isSharpable()
原文: Returns if this tone could be sharped.
@Deprecated public boolean isSharped(byte id)
原文: Returns if this tone id is the sharped id of the tone.
id
- 音调IDjava.lang.IllegalArgumentException
- 如果音调和半音都没有ID则抛出错误@Deprecated public static Note.Tone getById(byte id)
原文: Returns the tone to id. Also returning the semitones.
id
- 音调的ID