def build_LH(self, hand): ########################Build Left Hand self.leftHand = hand f = utils.handSizeFactor(hand.size) self.vpLH = self.makeHandActor(f) for limb in self.vpLH: limb.x(limb.x() * 2.5) limb.addPos([16.5 * 3 + 1, -7.5, 3])
def build_RH(self, hand): #########################Build Right Hand self.rightHand = hand f = utils.handSizeFactor(hand.size) self.vpRH = self.makeHandActor(f) for limb in self.vpRH: # initial x positions are superseded later limb.x(limb.x() * 2.5) limb.addPos([16.5 * 5 + 1, -7.5, 3])
def build_RH(self, hand): if self.verbose: print('Building Right Hand..') self.rightHand = hand f = utils.handSizeFactor(hand.size) self.vpRH = self.makeHandActor(f) for limb in self.vpRH: # initial x positions are superseded later limb.x( limb.x()* 2.5 ) limb.addpos([16.5*5+1, -7.5, 3] )
def build_LH(self, hand): ######################### if self.verbose: print('Building Left Hand..') self.leftHand = hand f = utils.handSizeFactor(hand.size) self.vpLH = self.makeHandActor(f) for limb in self.vpLH: limb.x( limb.x()* -2.5 ) #flip limb.addpos([16.5*3+1, -7.5, 3] )
def __init__(self, side="right", size='M'): self.LR = side self.frest = [None, -7.0, -2.8, 0.0, 2.8, 5.8] # first is dummy, (cm) self.weights = [None, 1.1, 1.0, 1.1, 0.9, 0.8] # finger rel strength self.bfactor = [None, 0.3, 1.0, 1.1, 0.8, 0.7] # hit of black key bias self.noteseq = [] self.fingerseq = [] self.depth = 9 self.autodepth = True self.verbose = True self.lyrics = False # show fingering numbers as lyrics in musescore self.size = size self.handstretch = False self.hf = utils.handSizeFactor(size) for i in (1, 2, 3, 4, 5): if self.frest[i]: self.frest[i] *= self.hf print('Your hand span set to size-' + size, 'which is', 21 * self.hf, 'cm') print('(max relaxed distance between thumb and pinkie)') self.cfps = list(self.frest) # hold current finger positions