Browse Source

Add checks to prevent a lot of redundant calls

master
Nils 3 years ago
parent
commit
77734b2042
  1. 3
      engine/pattern.py
  2. 1
      qtgui/songeditor.py

3
engine/pattern.py

@ -332,7 +332,10 @@ class Pattern(object):
except KeyError:
pass
#The following is only executed if the pattern was not cached yet
#If uncertain if the cache works print cacheHash to see what is really different. This function is called more than once per pattern sometimes, which is correct.
#print (cacheHash)
oneMeasureInTicks = howManyUnits * whatTypeOfUnit
oneMeasureInTicks /= subdivisions #subdivisions is 1 by default. bigger values mean shorter durations, which is compensated by the user setting bigger howManyUnits manually.

1
qtgui/songeditor.py

@ -828,7 +828,6 @@ class Switch(QtWidgets.QGraphicsRectItem):
if baugment == 1.0:
self.augmentationFactorOff()
def deprecated_wheelEvent(self, event):
#We now use dedicated keyboard shortcuts and not the mousewheel anymore.
#See main window menu actions

Loading…
Cancel
Save