public class Tempo extends Object
Modifier and Type | Field and Description |
---|---|
protected Rational |
mm |
protected Rational |
msecs |
static Rational |
msecs_per_minute
Evident
|
protected static BiFunction<RationalDuration,Integer,Tempo> |
pack
Used for parsers.
|
static Translet.Parser<Tempo> |
parser
Accepts the standard notation as usual in printed sheet music,
e.g.
|
static Translet.Parser<Tempo> |
prefixed_parser
Accepts the standard notation as usual in printed sheet music,
e.g.
|
protected RationalDuration |
refDuration |
Modifier | Constructor and Description |
---|---|
protected |
Tempo(RationalDuration refDuration,
Rational msecs,
Rational mm) |
Modifier and Type | Method and Description |
---|---|
Rational |
get_mm()
Return the number of beats per physical minute.
|
Rational |
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 |
get_msecs_per_whole() |
Rational |
get_msecs()
Return the physical duration of one beat.
|
Rational |
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.
|
RationalDuration |
get_refDuration()
Return the abstract CWN duration of one beat.
|
static 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 |
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 |
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 |
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.
|
String |
toString()
Returns as a String the standard notation as usual in printed sheet music,
e.g.
|
protected RationalDuration refDuration
protected Rational msecs
protected Rational mm
public static final Rational msecs_per_minute
protected static final BiFunction<RationalDuration,Integer,Tempo> pack
public static final Translet.Parser<Tempo> parser
public static final Translet.Parser<Tempo> prefixed_parser
protected Tempo(RationalDuration refDuration, Rational msecs, Rational mm)
public static Tempo mm(RationalDuration refDuration, int mm)
public static Tempo mm(RationalDuration refDuration, Rational mm)
public static Tempo msecs(RationalDuration refDuration, int msecs)
public static Tempo msecs(RationalDuration refDuration, Rational msecs)
public Rational get_mm()
public Rational get_msecs()
public RationalDuration get_refDuration()
public Rational get_mm(RationalDuration newref)
public Rational get_msecs(RationalDuration newref)
public Rational get_msecs_per_whole()