Modifier and Type | Field and Description |
---|---|
static short |
ID |
Constructor and Description |
---|
TimeSig()
Default Constructor
|
TimeSig(int numerator,
int denominator) |
TimeSig(int time,
int numerator,
int denominator) |
Modifier and Type | Method and Description |
---|---|
Event |
copy()
Makes a copy of an event
|
int |
getDenominator() |
short |
getID()
Retrieve an events id
|
int |
getMetronomePulse()
By Sean Hayes
|
int |
getNumerator() |
int |
getThirtySecondNotesPerBeat() |
int |
getTime()
Retrieve an events time
|
void |
print()
Print this events data in a System.out.println format
|
int |
read(java.io.DataInputStream dis)
Read the contends of this objec in from disk
Implemented by Sean T.
|
void |
setDenominator(int denom) |
void |
setMetronomePulse(int metronomePulse)
Specifies how often the metronome should click in terms of the number
of clock signals per click, which come at a rate of 24 per
quarter-note.
|
void |
setNumerator(int numer) |
void |
setThirtySecondNotesPerBeat(int thirtySecondNotesPerBeat) |
void |
setTime(int time)
Set an events time
|
int |
write(java.io.DataOutputStream dos)
write out event data to disk
|
public static final short ID
public TimeSig()
public TimeSig(int numerator, int denominator)
public TimeSig(int time, int numerator, int denominator)
public int getDenominator()
public void setDenominator(int denom)
public int getNumerator()
public void setNumerator(int numer)
public int getMetronomePulse()
sp.midi.event.TimeSig
public void setMetronomePulse(int metronomePulse)
metronomePulse
- public int getThirtySecondNotesPerBeat()
public void setThirtySecondNotesPerBeat(int thirtySecondNotesPerBeat)
public int getTime()
Event
public void setTime(int time)
Event
public short getID()
Event
public int write(java.io.DataOutputStream dos) throws java.io.IOException
Event
public int read(java.io.DataInputStream dis) throws java.io.IOException
public Event copy() throws java.lang.CloneNotSupportedException
Event