mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
temporal: fix Meter::to_quarters (BBT_Offset)
Because Paul can't do math
This commit is contained in:
parent
ca820d6380
commit
46f2dba306
1 changed files with 2 additions and 3 deletions
|
|
@ -402,10 +402,9 @@ Meter::round_to_beat (Temporal::BBT_Time const & bbt) const
|
|||
Temporal::Beats
|
||||
Meter::to_quarters (Temporal::BBT_Offset const & offset) const
|
||||
{
|
||||
int64_t ticks = 0;
|
||||
int64_t ticks = (Beats::PPQN * offset.bars * _divisions_per_bar * 4) / _note_value;
|
||||
|
||||
ticks += (Beats::PPQN * offset.bars * _divisions_per_bar * _note_value) / 4;
|
||||
ticks += (Beats::PPQN * offset.beats * _note_value) / 4;
|
||||
ticks += (Beats::PPQN * offset.beats * 4) / _note_value;
|
||||
|
||||
/* "parts per bar division" */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue