888 changed 48 to DefaultTicksPerTact/4

This commit is contained in:
Dave French
2015-01-08 08:37:07 +00:00
parent c0fc56eaea
commit 736c44ab8d

View File

@@ -107,7 +107,7 @@ void TimeDisplayWidget::updateTime()
case BarsTicks:
int tick;
tick = ( s->getMilliseconds() * s->getTempo() * 48 ) / 60000 ;
tick = ( s->getMilliseconds() * s->getTempo() * (DefaultTicksPerTact / 4 ) ) / 60000 ;
m_majorLCD.setValue( (int)(tick / s->ticksPerTact() ) + 1);
m_minorLCD.setValue( ( tick % s->ticksPerTact() ) /
( s->ticksPerTact() / s->getTimeSigModel().getNumerator() ) +1 );