|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmusiccreator.TimeSignature
public class TimeSignature
Implements the TimeSignature class, which describes the musical time- signature of a song. A TimeSignature object has a "top", or number of beats- per measure, and a "bottom", or type of beat.
| Constructor Summary | |
|---|---|
TimeSignature()
Creates a new instance of TimeSignature; defaults to 4/4. |
|
TimeSignature(int t,
int b)
Constructor for time-signature |
|
| Method Summary | |
|---|---|
int |
getBottom()
Get the type of beat of a time-signature. |
java.lang.String |
getName()
Get the time-signature in String format. |
int |
getTop()
Get the beats-per-measure of a time-signature. |
void |
setBottom(int b)
Set the type of beat of a time-signature. |
void |
setTop(int t)
Set the beats-per-measure of a time-signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeSignature()
public TimeSignature(int t,
int b)
t - Number of beats per measureb - Size of beat (4=quarter, 8=8th, etc.)| Method Detail |
|---|
public final void setTop(int t)
t - Set number of beats-per-measurepublic final void setBottom(int b)
b - Size of beat in a measure (2=half, 4=quarter, etc.)public final int getTop()
public final int getBottom()
public final java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||