Package | Description |
---|---|
eu.bandm.music.entities |
All fundamental entities for modeling music.
|
Modifier and Type | Field and Description |
---|---|
static RationalDuration |
RationalDuration.QUARTER
The duration of a quarter note = 1/4
|
protected RationalDuration |
Tempo.refDuration |
static RationalDuration |
RationalDuration.WHOLE
The duration of a whole note = 1/1
|
static RationalDuration |
RationalDuration.ZERO
Evident
|
Modifier and Type | Field and Description |
---|---|
protected static BiFunction<RationalDuration,Integer,Tempo> |
Tempo.pack
Used for parsers.
|
static Translet.Parser<RationalDuration> |
RationalDuration.parser
Evident
|
static RetractableFunction<RationalDuration,Rational> |
RationalDuration.toRational
retract .
|
Modifier and Type | Method and Description |
---|---|
static RationalDuration |
RationalDuration.fromRational(Rational rat) |
RationalDuration |
Tempo.get_refDuration()
Return the abstract CWN duration of one beat.
|
Modifier and Type | Method and Description |
---|---|
int |
RationalDuration.compareTo(RationalDuration o) |
static @Opt RationalDuration.DottedBaseDuration |
RationalDuration.dottedNotation(RationalDuration d)
Return the duration's representation as base duration plus zero or more DOTs,
|
Rational |
Tempo.get_mm(RationalDuration newref)
Return the number of beats per physical minute, when the beat changes
the dedicated abstract CWN duration, but in correct proportion
to the original beat.
|
Rational |
Tempo.get_msecs(RationalDuration newref)
Return the physical duration of a new beat, when the beat changes
the dedicated abstract CWN duration, but in correct proportion
to the original beat.
|
static Tempo |
Tempo.mm(RationalDuration refDuration,
int mm)
Create a tempo with "mm" beats per minute, and one beat has the given
"refDuration" as its logical abstract CWN duration.
|
static Tempo |
Tempo.mm(RationalDuration refDuration,
Rational mm)
Create a tempo with "mm" beats per minute, and one beat has the given
"refDuration" as its logical abstract CWN duration.
|
static Tempo |
Tempo.msecs(RationalDuration refDuration,
int msecs)
Create a tempo in which a beat has the duration of "msecs" milliseconds,
and one beat has the given "refDuration" as its logical abstract CWN duration.
|
static Tempo |
Tempo.msecs(RationalDuration refDuration,
Rational msecs)
Create a tempo in which a beat has the duration of "msecs" milliseconds,
and one beat has the given "refDuration" as its logical abstract CWN duration.
|
Constructor and Description |
---|
Tempo(RationalDuration refDuration,
Rational msecs,
Rational mm) |