def testListFunctions(): sampleLs = [2,1,2,3,2,-1,2] print listFunctions.cumulativeSum(sampleLs) print listFunctions.cumulativeSumZero(sampleLs)
def getPitches(intervals): return cumulativeSumZero(intervals)