예제 #1
0
 def _joinPitch(self):
     # note: joinPsReal will accept pc values tt are not pc:
     # the may be floats, above and below 0-11 range
     psReal = pitchTools.joinPsReal(self.oct, self.pc, self.micro)
     # deleat temporary variables
     del self.oct
     del self.pc
     del self.micro
     #del self.psReal
     return psReal
예제 #2
0
 def _joinPitch(self):
     # note: joinPsReal will accept pc values tt are not pc:
     # the may be floats, above and below 0-11 range
     psReal = pitchTools.joinPsReal(self.oct, self.pc, self.micro)
     # deleat temporary variables
     del self.oct
     del self.pc
     del self.micro
     #del self.psReal
     return psReal
예제 #3
0
파일: clone.py 프로젝트: ericahub/athenacl
 def getOct(self, valArray, tEvalArray, refDict):
     """value input is a ps value, need to extract
     octave information and only process this, then restore
     it to pitch space"""
     octArray = []
     pcArray = []
     # get octave data form ps; micro will not be lost
     for val in valArray: 
         oct, pc = pitchTools.splitOctPs(val)
         octArray.append(oct)
         pcArray.append(pc)
     # process oct data
     octArray = self.pmtrObjDict['octQ'](octArray, tEvalArray, refDict) 
     # micro in pc will not be lost
     valArray = []
     for i in range(0, len(octArray)): # restpr w/ pc
         oct = octArray[i]
         pc = pcArray[i]
         valArray.append(pitchTools.joinPsReal(oct, pc, 0))
     return valArray
예제 #4
0
파일: clone.py 프로젝트: gmkling/athenacl
 def getOct(self, valArray, tEvalArray, refDict):
     """value input is a ps value, need to extract
     octave information and only process this, then restore
     it to pitch space"""
     octArray = []
     pcArray = []
     # get octave data form ps; micro will not be lost
     for val in valArray:
         oct, pc = pitchTools.splitOctPs(val)
         octArray.append(oct)
         pcArray.append(pc)
     # process oct data
     octArray = self.pmtrObjDict['octQ'](octArray, tEvalArray, refDict)
     # micro in pc will not be lost
     valArray = []
     for i in range(0, len(octArray)):  # restpr w/ pc
         oct = octArray[i]
         pc = pcArray[i]
         valArray.append(pitchTools.joinPsReal(oct, pc, 0))
     return valArray