diff --git a/src/gui/src/PatternEditor/DrumPatternEditor.cpp b/src/gui/src/PatternEditor/DrumPatternEditor.cpp index aaf6bb917..3df5c96bd 100644 --- a/src/gui/src/PatternEditor/DrumPatternEditor.cpp +++ b/src/gui/src/PatternEditor/DrumPatternEditor.cpp @@ -1184,7 +1184,9 @@ void DrumPatternEditor::drawNote( Note *note, QPainter& p, bool bIsForeground ) return; } - QPoint pos ( PatternEditor::nMargin + note->get_position() * m_fGridWidth, + QPoint pos ( PatternEditor::nMargin + + ( note->get_lead_lag() * AudioEngine::getLeadLagInTicks() + + note->get_position() ) * m_fGridWidth, ( nInstrument * m_nGridHeight) + (m_nGridHeight / 2) - 3 ); drawNoteSymbol( p, pos, note, bIsForeground ); diff --git a/src/gui/src/PatternEditor/PianoRollEditor.cpp b/src/gui/src/PatternEditor/PianoRollEditor.cpp index 0947c43b5..ea2926cdc 100644 --- a/src/gui/src/PatternEditor/PianoRollEditor.cpp +++ b/src/gui/src/PatternEditor/PianoRollEditor.cpp @@ -380,7 +380,9 @@ void PianoRollEditor::drawNote( Note *pNote, QPainter *pPainter, bool bIsForegro Hydrogen *pHydrogen = Hydrogen::get_instance(); if ( pNote != nullptr && pNote->get_instrument() != nullptr && pNote->get_instrument() == pHydrogen->getSelectedInstrument() ) { - QPoint pos ( PatternEditor::nMargin + pNote->get_position() * m_fGridWidth, + QPoint pos ( PatternEditor::nMargin + + ( pNote->get_lead_lag() * AudioEngine::getLeadLagInTicks() + + pNote->get_position() ) * m_fGridWidth, m_nGridHeight * pitchToLine( pNote->get_notekey_pitch() ) + 1); drawNoteSymbol( *pPainter, pos, pNote, bIsForeground ); }