net.charlesames.music.midi
Enum MidiRegisteredParameter

java.lang.Object
  extended by java.lang.Enum<MidiRegisteredParameter>
      extended by net.charlesames.music.midi.MidiRegisteredParameter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MidiRegisteredParameter>

public enum MidiRegisteredParameter
extends java.lang.Enum<MidiRegisteredParameter>

MIDI Registered Parameter Definitions

Author:
Charles Ames

Enum Constant Summary
MASTER_COARSE_TUNING
           
MASTER_FINE_TUNING
           
NULL
           
PITCH_BEND_RANGE
           
TUNING_BANK_SELECT
           
TUNING_PROGRAM_SELECT
           
 
Method Summary
 java.lang.String getDescription()
          Get a description of the MIDI registered parameter.
 int lsb()
          Get the least significant bit.
 int msb()
          Get the most significant bit.
static MidiRegisteredParameter valueOf(int msb, int lsb)
          Gets the RegisteredParameter instance associated with the indicated msb and lsb.
static MidiRegisteredParameter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MidiRegisteredParameter[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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

PITCH_BEND_RANGE

public static final MidiRegisteredParameter PITCH_BEND_RANGE

MASTER_FINE_TUNING

public static final MidiRegisteredParameter MASTER_FINE_TUNING

MASTER_COARSE_TUNING

public static final MidiRegisteredParameter MASTER_COARSE_TUNING

TUNING_PROGRAM_SELECT

public static final MidiRegisteredParameter TUNING_PROGRAM_SELECT

TUNING_BANK_SELECT

public static final MidiRegisteredParameter TUNING_BANK_SELECT

NULL

public static final MidiRegisteredParameter NULL
Method Detail

values

public static MidiRegisteredParameter[] 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 (MidiRegisteredParameter c : MidiRegisteredParameter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MidiRegisteredParameter valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDescription

public java.lang.String getDescription()
Get a description of the MIDI registered parameter.

Returns:
A description of the MIDI registered parameter.

msb

public int msb()
Get the most significant bit.

Returns:
The most significant bit.

lsb

public int lsb()
Get the least significant bit.

Returns:
The least significant bit.

valueOf

public static MidiRegisteredParameter valueOf(int msb,
                                              int lsb)
Gets the RegisteredParameter instance associated with the indicated msb and lsb.

Parameters:
msb - The most significant bit.
lsb - The least significant bit.
Returns:
The RegisteredParameter instance associated with the indicated msb and lsb.