This is clearly broken
Partially revert previous commit. Otherwise snap to bar/beat clocks-displays display rounded down X|Y|1919 instead of X|Y+1|0
This commit is contained in:
parent
14da117bc8
commit
30ec62a953
|
@ -245,7 +245,7 @@ class LIBTEMPORAL_API Tempo {
|
|||
static void superbeats_to_beats_ticks (int64_t sb, int32_t& b, int32_t& t) {
|
||||
b = sb / big_numerator;
|
||||
int64_t remain = sb - (b * big_numerator);
|
||||
t = PBD::muldiv_floor (Temporal::ticks_per_beat, remain, big_numerator);
|
||||
t = PBD::muldiv_round (Temporal::ticks_per_beat, remain, big_numerator);
|
||||
}
|
||||
|
||||
bool active () const { return _active; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user