Browse Source

Flip the page earlier during live playback, showing the last measure (or so) twice

master
Nils 1 month ago
parent
commit
80bc678a31
  1. 3
      qtgui/cursor.py

3
qtgui/cursor.py

@ -153,7 +153,8 @@ class Playhead(QtWidgets.QGraphicsLineItem):
scenePos = self.parentScoreScene.parentView.mapFromScene(self.pos())
cursorViewPosX = scenePos.x() #the cursor position in View coordinates
width = self.parentScoreScene.parentView.geometry().width()
if cursorViewPosX <= 0 or cursorViewPosX >= width: #"pageflip"
offset = api.D1 / constantsAndConfigs.ticksToPixelRatio
if cursorViewPosX <= 0 or cursorViewPosX >= width-offset: #"pageflip" with offset to show the last measure (or so) twice
self.parentScoreScene.parentView.horizontalScrollBar().setValue(int(x * constantsAndConfigs.zoomFactor))

Loading…
Cancel
Save