Always highlight the beats in PianoRoll and AutomationEditor using only time signature (#3458)
* Duration of the beat is defined by the denominator of the time signature and it does not depend on whether or not you use triplets. * Fortmatting fixed.
This commit is contained in:
@@ -1253,13 +1253,6 @@ void AutomationEditor::paintEvent(QPaintEvent * pe )
|
||||
int ticksPerBeat = DefaultTicksPerTact /
|
||||
Engine::getSong()->getTimeSigModel().getDenominator();
|
||||
|
||||
// triplet mode occurs if the note quantization isn't a multiple of 3
|
||||
// note that the automation editor does not support triplets yet
|
||||
if( AutomationPattern::quantization() % 3 != 0 )
|
||||
{
|
||||
ticksPerBeat = static_cast<int>( ticksPerBeat * 2.0/3.0 );
|
||||
}
|
||||
|
||||
for( tick = m_currentPosition - m_currentPosition % ticksPerBeat,
|
||||
x = xCoordOfTick( tick );
|
||||
x<=width();
|
||||
|
||||
@@ -2913,12 +2913,6 @@ void PianoRoll::paintEvent(QPaintEvent * pe )
|
||||
int ticksPerBeat = DefaultTicksPerTact /
|
||||
Engine::getSong()->getTimeSigModel().getDenominator();
|
||||
|
||||
// triplet mode occurs if the note quantization isn't a multiple of 3
|
||||
if( quantization() % 3 != 0 )
|
||||
{
|
||||
ticksPerBeat = static_cast<int>( ticksPerBeat * 2.0/3.0 );
|
||||
}
|
||||
|
||||
for( tick = m_currentPosition - m_currentPosition % ticksPerBeat,
|
||||
x = xCoordOfTick( tick ); x <= width();
|
||||
tick += ticksPerBeat, x = xCoordOfTick( tick ) )
|
||||
|
||||
Reference in New Issue
Block a user