|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.midi.StaffProperty
jcaas.midi.TimeSignature
public class TimeSignature
TimeSignature represents the Time Signature of a staff. It extends from StaffProperty since it may be returned by Song getters and setters.
Constructor Summary | |
---|---|
TimeSignature()
Default constructor. |
|
TimeSignature(int beats,
int unit)
Constructor, sets the time signature to beats/unit |
Method Summary | |
---|---|
int |
getBeatsPerMeasure()
Return the number of beats per measure. |
java.lang.String |
getName()
Returns the name for this type of Staff Property |
int |
getUnitBeat()
Return the size of the unit beat. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeSignature()
public TimeSignature(int beats, int unit)
beats
- the int number of beats per measure.unit
- the int representing the type of note which counts as one beat.
1 is whole note, 2 half note, 4 quarter note, 8 eight note, etc.Method Detail |
---|
public int getBeatsPerMeasure()
public int getUnitBeat()
public java.lang.String getName()
StaffProperty
getName
in class StaffProperty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |