public enum RoombaNoteDuration extends Enum<RoombaNoteDuration>
Enum Constant and Description |
---|
EightNote |
HalfNote |
QuarterNote |
SixteenthNote |
WholeNote |
Modifier and Type | Method and Description |
---|---|
byte |
getDurationByte(int tempo)
Get the byte representation of the relative note duration
|
static RoombaNoteDuration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoombaNoteDuration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoombaNoteDuration SixteenthNote
public static final RoombaNoteDuration EightNote
public static final RoombaNoteDuration QuarterNote
public static final RoombaNoteDuration HalfNote
public static final RoombaNoteDuration WholeNote
public static RoombaNoteDuration[] values()
for (RoombaNoteDuration c : RoombaNoteDuration.values()) System.out.println(c);
public static RoombaNoteDuration valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getDurationByte(int tempo)
tempo
- Tempo in BPMCopyright © 2017. All rights reserved.