fi.jyu.mit.Music
Enum MidiPlayer.NoteDuration
java.lang.Object
java.lang.Enum<MidiPlayer.NoteDuration>
fi.jyu.mit.Music.MidiPlayer.NoteDuration
- All Implemented Interfaces:
- Serializable, Comparable<MidiPlayer.NoteDuration>
- Enclosing class:
- MidiPlayer
public static enum MidiPlayer.NoteDuration
- extends Enum<MidiPlayer.NoteDuration>
Nuotin kestot tahdin desimaaliosissa.
DOUBLE
public static final MidiPlayer.NoteDuration DOUBLE
EIGHTH
public static final MidiPlayer.NoteDuration EIGHTH
HALF
public static final MidiPlayer.NoteDuration HALF
QUARTER
public static final MidiPlayer.NoteDuration QUARTER
SIXTEENTH
public static final MidiPlayer.NoteDuration SIXTEENTH
SIXTYFOURTH
public static final MidiPlayer.NoteDuration SIXTYFOURTH
THIRTYSECOND
public static final MidiPlayer.NoteDuration THIRTYSECOND
WHOLE
public static final MidiPlayer.NoteDuration WHOLE
values
public static MidiPlayer.NoteDuration[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MidiPlayer.NoteDuration c : MidiPlayer.NoteDuration.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MidiPlayer.NoteDuration valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
length
public double length()