Previous Next Package
Class MIDICompose.TimeSignature
java.lang.Object
|
+----MIDICompose.MIDIObject
|
+----MIDICompose.MIDIEvent
|
+----MIDICompose.MetaEvent
|
+----MIDICompose.TimeSignature
- public class TimeSignature
- extends MetaEvent
-
TimeSignature(int, int)
- Creates new TimeSignature with numerator and denominator.
-
TimeSignature(int, int, int, int, int)
- Creates new TimeSignature with deltaTime, numerator, denominator, metronome and clock.
-
clock()
- Returns current clock-setting.
-
denominator()
- Returns current denominator.
-
metronome()
- Returns current metronome-setting.
-
numerator()
- Returns current numerator.
-
setClock(int)
- Sets clock.
-
setDenominator(int)
- Sets denominator
-
setMetronome(int)
- Sets metronome.
-
setNumerator(int)
- Sets denominator.
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.
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.
metronome
public int metronome()
- Returns the current metronome.
- Returns:
- an int between 0 and 255.
setMetronome
public void setMetronome(int metronome)
- Sets the metronome.
- Parameters:
- metronome - any int between 0 and 255.
clock
public int clock()
- Returns the current clock.
- Returns:
- an int between 0 and 255.
setClock
public void setClock(int clock)
- Sets the clock.
- Parameters:
- clock - any int between 0 and 255.
numerator
public int numerator()
- Returns the current numerator.
- Returns:
- an int between 0 and 255.
setNumerator
public void setNumerator(int numerator)
- Sets the numerator.
- Parameters:
- numerator - any int between 0 and 255.
denominator
public int denominator()
- Returns the current denominator.
- Returns:
- 1, 2, 4, 8, 16, 32 or 64.
setDenominator
public void setDenominator(int denominator)
- Sets the denominator.
- Parameters:
- denominator - 1, 2, 4, 8, 16, 32 or 64.
Previous Next Package