|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.herac.tuxguitar.song.models.Duration
public class Duration
Field Summary | |
---|---|
static int |
EIGHTH
Corchea. |
static int |
HALF
Blanca. |
static Tupleto |
NO_TUPLETO
Sin tupleto |
static int |
QUARTER
Negra. |
static long |
QUARTER_TIME
tiempo por defecto de la Negra. |
static int |
SIXTEENTH
Semi-Corchea. |
static int |
SIXTY_FOURTH
Semi-Fusa. |
static int |
THIRTY_SECOND
Fusa. |
static int |
WHOLE
Redonda |
Constructor Summary | |
---|---|
Duration(int value)
|
|
Duration(int value,
boolean dotted,
boolean doubleDotted,
Tupleto tupleto)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
static Duration |
fromTime(long time)
|
static Duration |
fromTime(long time,
Duration minDuration)
|
long |
getTime()
|
Tupleto |
getTupleto()
|
int |
getValue()
|
boolean |
isDotted()
|
boolean |
isDoubleDotted()
|
boolean |
isEqual(Duration d)
|
int |
log2()
|
void |
setDotted(boolean dotted)
|
void |
setDoubleDotted(boolean doubleDotted)
|
void |
setValue(int value)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long QUARTER_TIME
public static final int WHOLE
public static final int HALF
public static final int QUARTER
public static final int EIGHTH
public static final int SIXTEENTH
public static final int THIRTY_SECOND
public static final int SIXTY_FOURTH
public static final Tupleto NO_TUPLETO
Constructor Detail |
---|
public Duration(int value, boolean dotted, boolean doubleDotted, Tupleto tupleto)
public Duration(int value)
Method Detail |
---|
public int getValue()
public void setValue(int value)
public boolean isDotted()
public void setDotted(boolean dotted)
public boolean isDoubleDotted()
public void setDoubleDotted(boolean doubleDotted)
public Tupleto getTupleto()
public long getTime()
public static Duration fromTime(long time)
public static Duration fromTime(long time, Duration minDuration)
public int log2()
public boolean isEqual(Duration d)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |