#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.
@ -804,30 +804,29 @@ class Switch(QtWidgets.QGraphicsRectItem):
ifnotbscale==self.scaleTranspose:
api.setSwitchScaleTranspose(self.parentTrackStructure.exportDict["id"],self.position,bscale)#we flip the polarity here. The receiving flip is done in the callback.
#new transpose/buffer gets set via callback
ifbscale==0:
self.scaleTransposeOff()
ifbscale==0:
self.scaleTransposeOff()
#Halftone Transpose. Independent of Scale Transpose
ifnotbhalftone==self.halftoneTranspose:
api.setSwitchHalftoneTranspose(self.parentTrackStructure.exportDict["id"],self.position,bhalftone)#half tone transposition is not flipped