midiReference
Enum TimeBase

java.lang.Object
  extended by java.lang.Enum<TimeBase>
      extended by midiReference.TimeBase
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TimeBase>

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

Enumeration containing the number of pulses per rythm value (based on a 24PPQ MIDI sync clock)

Author:
gmuller

Enum Constant Summary
DOTTED_EIGHTH
          18 pulses per dotted 8th note
DOTTED_HALF
          72 Pulses per dotted 1/2 note
DOTTED_QUARTER
          36 pulses per dotted 1/4 note
DOTTED_SIXTEENTH
          9 pulses per dotted 16th note
EIGHTH
          12 pulses per 8th note
HALF
          48 pulses per 1/2 note
QUARTER
          24 pulses per 1/4 note
SIXTEENTH
          6 pulses per 16th note
THIRTY_SECOND
          3 pulses per 32nd note
WHOLE
          96 pulses per whole note
 
Method Summary
static TimeBase get(java.lang.Integer stepSize)
           
 int getValue()
          Gets the pulse count reference associated with the enumeration
static TimeBase valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TimeBase[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

THIRTY_SECOND

public static final TimeBase THIRTY_SECOND
3 pulses per 32nd note


SIXTEENTH

public static final TimeBase SIXTEENTH
6 pulses per 16th note


DOTTED_SIXTEENTH

public static final TimeBase DOTTED_SIXTEENTH
9 pulses per dotted 16th note


EIGHTH

public static final TimeBase EIGHTH
12 pulses per 8th note


DOTTED_EIGHTH

public static final TimeBase DOTTED_EIGHTH
18 pulses per dotted 8th note


QUARTER

public static final TimeBase QUARTER
24 pulses per 1/4 note


DOTTED_QUARTER

public static final TimeBase DOTTED_QUARTER
36 pulses per dotted 1/4 note


HALF

public static final TimeBase HALF
48 pulses per 1/2 note


DOTTED_HALF

public static final TimeBase DOTTED_HALF
72 Pulses per dotted 1/2 note


WHOLE

public static final TimeBase WHOLE
96 pulses per whole note

Method Detail

values

public static final TimeBase[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TimeBase c : TimeBase.values())
        System.out.println(c);

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

valueOf

public static TimeBase 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

getValue

public int getValue()
Gets the pulse count reference associated with the enumeration

Returns:
int pulse count reference

get

public static TimeBase get(java.lang.Integer stepSize)