17 double units,
double& major,
double& minor,
double &minorMinor,
31 wxString& s,
double d,
double units,
double minor,
int mDigits,
TickType tickType
41 int beat =
round(beatApprox);
45 if (units < .4 * (60 /
mBpm)* (4 / lower))
48 s.Printf(
wxT(
"%d"), (
int)
round(val + 1));
51 s.Printf(
wxT(
"%d.%d"), (
int)floor(val + 1), (
int)beat);
54 else if (units < .8 * (60 /
mBpm) * (4 / lower))
57 s.Printf(
wxT(
"%d"), (
int)
round(val + 1));
60 s.Printf(
wxT(
"%d.%d"), (
int)floor(val + 1), (
int)beat);
65 s.Printf(
wxT(
"%d"), (
int)
round(val + 1));
74 assert(timeSigUpper > 0);
75 assert(timeSigLower > 1);
76 assert((timeSigLower & (timeSigLower - 1)) == 0);
94 if (units < .025 * (60 /
mBpm) * (4 / lower))
100 ticks.
minor = { 1, 32, 60 / (
mBpm * (lower * 2)) };
104 else if (units < .05 * (60 /
mBpm) * (4 / lower))
110 ticks.
minor = { 1, 16, 60 / (
mBpm * (lower)) };
114 else if (units < .1 * (60 /
mBpm) * (4 / lower))
120 ticks.
minor = { 1, 8, 60 / (
mBpm * (lower / 2)) };
124 else if (units < .4 * (60 /
mBpm) * (4 / lower))
130 ticks.
minor = { 1, 8, 60 / (
mBpm * (lower / 2)) };
134 else if (units < .8 * (60 /
mBpm) * (4 / lower))
140 ticks.
minor = { 1, 4, 60 / (
mBpm * (lower / 4)) };
144 else if (units < 4 * (60 /
mBpm) * (4 / lower))
152 else if (units < 8 * (60 /
mBpm) * (4 / lower))
171 60 / (
mBpm * (lower / (8 * factor))) };
int GetUpperTimeSignature() const
int GetLowerTimeSignature() const
fastfloat_really_inline void round(adjusted_mantissa &am, callback cb) noexcept