Previous  Next          Package

Class MIDICompose.TimeSignature

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.MIDIEvent
                   |
                   +----MIDICompose.MetaEvent
                           |
                           +----MIDICompose.TimeSignature

public class TimeSignature
extends MetaEvent

Constructor Index

 o TimeSignature(int, int)
Creates new TimeSignature with numerator and denominator.
 o TimeSignature(int, int, int, int, int)
Creates new TimeSignature with deltaTime, numerator, denominator, metronome and clock.

Method Index

 o clock()
Returns current clock-setting.
 o denominator()
Returns current denominator.
 o metronome()
Returns current metronome-setting.
 o numerator()
Returns current numerator.
 o setClock(int)
Sets clock.
 o setDenominator(int)
Sets denominator
 o setMetronome(int)
Sets metronome.
 o setNumerator(int)
Sets denominator.

Constructors

 o TimeSignature
 public TimeSignature(int numerator,
                      int denominator)
Creates a new TimeSignature.

Parameters:
numerator - any int between 0 and 255.
denominator - 1, 2, 4, 8, 16, 32 or 64.
 o TimeSignature
 public TimeSignature(int deltaTime,
                      int numerator,
                      int denominator,
                      int metronome,
                      int clock)
Creates a new TimeSignature.

Parameters:
deltaTime - any int (>= 0).
numerator - any int between 0 and 255.
denominator - 1, 2, 4, 8, 16, 32 or 64.
metronome - any int between 0 and 255.
clock - any int between 0 and 255.

Methods

 o metronome
 public int metronome()
Returns the current metronome.

Returns:
an int between 0 and 255.
 o setMetronome
 public void setMetronome(int metronome)
Sets the metronome.

Parameters:
metronome - any int between 0 and 255.
 o clock
 public int clock()
Returns the current clock.

Returns:
an int between 0 and 255.
 o setClock
 public void setClock(int clock)
Sets the clock.

Parameters:
clock - any int between 0 and 255.
 o numerator
 public int numerator()
Returns the current numerator.

Returns:
an int between 0 and 255.
 o setNumerator
 public void setNumerator(int numerator)
Sets the numerator.

Parameters:
numerator - any int between 0 and 255.
 o denominator
 public int denominator()
Returns the current denominator.

Returns:
1, 2, 4, 8, 16, 32 or 64.
 o setDenominator
 public void setDenominator(int denominator)
Sets the denominator.

Parameters:
denominator - 1, 2, 4, 8, 16, 32 or 64.

 Previous  Next          Package