|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabc.notation.Fraction
abc.notation.TimeSignature
public class TimeSignature
This class enables you to describe any time signatures like 4/4, 6/8 ...
| Field Summary | |
|---|---|
static TimeSignature |
SIGNATURE_3_4
The 3/4 time signature constant. |
static TimeSignature |
SIGNATURE_4_4
The 4/4 time signature constant. |
static TimeSignature |
SIGNATURE_6_8
The 6/8 time signature constant. |
| Constructor Summary | |
|---|---|
TimeSignature(int num,
int den)
Creates a new time signature with the specified parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
short |
getDefaultNoteLength()
Returns the default note length for this time signature. |
int |
getNumberOfDefaultNotesPerBeat(short defaultLength)
|
boolean |
isCoumpound()
Return true if this time signature if compound, false otherwise. |
| Methods inherited from class abc.notation.Fraction |
|---|
floatValue, getDenominator, getNumerator, multipliedBy, setDenominator, setNumerator, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TimeSignature SIGNATURE_4_4
public static final TimeSignature SIGNATURE_3_4
public static final TimeSignature SIGNATURE_6_8
| Constructor Detail |
|---|
public TimeSignature(int num,
int den)
num - The number of beat in a bar.den - The type of those beats.| Method Detail |
|---|
public short getDefaultNoteLength()
public boolean isCoumpound()
public int getNumberOfDefaultNotesPerBeat(short defaultLength)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||