fix arithmetic error in Meter::to_quarters
This commit is contained in:
@@ -403,8 +403,8 @@ Meter::to_quarters (Temporal::BBT_Offset const & offset) const
|
||||
{
|
||||
int64_t ticks = 0;
|
||||
|
||||
ticks += (Beats::PPQN * offset.bars * _divisions_per_bar * 4) / _note_value;
|
||||
ticks += (Beats::PPQN * offset.beats * 4) / _note_value;
|
||||
ticks += (Beats::PPQN * offset.bars * _divisions_per_bar * _note_value) / 4;
|
||||
ticks += (Beats::PPQN * offset.beats * _note_value) / 4;
|
||||
|
||||
/* "parts per bar division" */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user