|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GeneralMidiPercussionSound>
net.charlesames.music.midi.GeneralMidiPercussionSound
public enum GeneralMidiPercussionSound
General MIDI percussion sound definitions. Each sound is uniquely associated with a key number, where key number 60 is middle C.
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Get the sound description. |
int |
getKeyNumber()
Get the key number. |
static GeneralMidiPercussionSound |
valueFromDescription(java.lang.String description)
Get the GeneralMidiPercussionSound instance associated with the indicated description. |
static GeneralMidiPercussionSound |
valueOf(int keyNumber)
Get the GeneralMidiPercussionSound instance associated with the indicated key number. |
static GeneralMidiPercussionSound |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GeneralMidiPercussionSound[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static java.util.SortedMap<java.lang.String,GeneralMidiPercussionSound> |
valuesByDescription()
Get the collection of indications. |
static java.util.SortedMap<java.lang.String,GeneralMidiPercussionSound> |
valuesByName()
Get the collection of indications. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GeneralMidiPercussionSound BASS_DRUM2
public static final GeneralMidiPercussionSound BASS_DRUM1
public static final GeneralMidiPercussionSound STICK_SIDE
public static final GeneralMidiPercussionSound SNARE_DRUM1
public static final GeneralMidiPercussionSound HAND_CLAP
public static final GeneralMidiPercussionSound SNARE_DRUM2
public static final GeneralMidiPercussionSound TOM_LOW2
public static final GeneralMidiPercussionSound HI_HAT_CLOSED
public static final GeneralMidiPercussionSound TOM_LOW1
public static final GeneralMidiPercussionSound HI_HAT_PEDAL
public static final GeneralMidiPercussionSound TOM_MID2
public static final GeneralMidiPercussionSound HI_HAT_OPEN
public static final GeneralMidiPercussionSound TOM_MID1
public static final GeneralMidiPercussionSound TOM_HIGH2
public static final GeneralMidiPercussionSound CYMBAL_CRASH1
public static final GeneralMidiPercussionSound TOM_HIGH1
public static final GeneralMidiPercussionSound CYMBAL_RIDE1
public static final GeneralMidiPercussionSound CYMBAL_CHINESE
public static final GeneralMidiPercussionSound CYMBAL_RIDE_BELL
public static final GeneralMidiPercussionSound TAMBORINE
public static final GeneralMidiPercussionSound CYMBAL_SPLASH
public static final GeneralMidiPercussionSound COWBELL
public static final GeneralMidiPercussionSound CYMBAL_CRASH2
public static final GeneralMidiPercussionSound VIBRA_SLAP
public static final GeneralMidiPercussionSound CYMBAL_RIDE2
public static final GeneralMidiPercussionSound BONGO_HIGH
public static final GeneralMidiPercussionSound BONGO_LOW
public static final GeneralMidiPercussionSound CONGA_HIGH_MUTE
public static final GeneralMidiPercussionSound CONGA_HIGH_OPEN
public static final GeneralMidiPercussionSound CONGA_LOW
public static final GeneralMidiPercussionSound TIMBALE_HIGH
public static final GeneralMidiPercussionSound TIMBALE_LOW
public static final GeneralMidiPercussionSound AGOGO_HIGH
public static final GeneralMidiPercussionSound AGOGO_LOW
public static final GeneralMidiPercussionSound CABASA
public static final GeneralMidiPercussionSound MARACAS
public static final GeneralMidiPercussionSound WHISTLE_SHORT
public static final GeneralMidiPercussionSound WHISTLE_LONG
public static final GeneralMidiPercussionSound GUIRO_SHORT
public static final GeneralMidiPercussionSound GUIRO_LONG
public static final GeneralMidiPercussionSound CLAVES
public static final GeneralMidiPercussionSound WOODBLOCK_HIGH
public static final GeneralMidiPercussionSound WOODBLOCK_LOW
public static final GeneralMidiPercussionSound CUICA_MUTE
public static final GeneralMidiPercussionSound CUICA_OPEN
public static final GeneralMidiPercussionSound TRIANGLE_MUTE
public static final GeneralMidiPercussionSound TRIANGLE_OPEN
| Method Detail |
|---|
public static GeneralMidiPercussionSound[] values()
for (GeneralMidiPercussionSound c : GeneralMidiPercussionSound.values()) System.out.println(c);
public static GeneralMidiPercussionSound 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 name
java.lang.NullPointerException - if the argument is nullpublic static java.util.SortedMap<java.lang.String,GeneralMidiPercussionSound> valuesByName()
GeneralMidiPercussionSound instances, indexed by name.public static java.util.SortedMap<java.lang.String,GeneralMidiPercussionSound> valuesByDescription()
GeneralMidiPercussionSound instances, indexed by name.public java.lang.String getDescription()
public int getKeyNumber()
public static GeneralMidiPercussionSound valueOf(int keyNumber)
keyNumber - The indicated key number. Ranges from 35 to 81.
public static GeneralMidiPercussionSound valueFromDescription(java.lang.String description)
description - The indicated description.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||