Uses of Class
eu.bandm.music.entities.RationalDuration
-
Uses of RationalDuration in eu.bandm.music.entities
Modifier and TypeFieldDescriptionstatic final RationalDuration
RationalDuration.QUARTER
The duration of a quarter note = 1/4protected RationalDuration
Tempo.refDuration
static final RationalDuration
RationalDuration.WHOLE
The duration of a whole note = 1/1static final RationalDuration
RationalDuration.ZERO
EvidentModifier and TypeFieldDescriptionprotected static final BiFunction<RationalDuration,
Integer, Tempo> Tempo.pack
Used for parsers.static final Translet.Parser<RationalDuration>
RationalDuration.parser
Evidentstatic final RetractableFunction<RationalDuration,
Rational> RationalDuration.toRational
retract .Modifier and TypeMethodDescriptionstatic RationalDuration
RationalDuration.fromRational
(Rational rat) Tempo.get_refDuration()
Return the abstract CWN duration of one beat.static RationalDuration
RationalDuration.of
(int num, int den) Make a duration n/d for n>=0 and d>0.static RationalDuration
Make a duration for rat>=0/1.Modifier and TypeMethodDescriptionint
RationalDuration.compareTo
(RationalDuration o) RationalDuration.dottedNotation
(RationalDuration d) Return the duration's representation as base duration plus zero or more DOTs,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.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.ModifierConstructorDescriptionprotected
Tempo
(RationalDuration refDuration, Rational msecs, Rational mm)