def stdRun(path, graph=True): frames = files.reader(path) # if graph: # chart.drawGraphJob(frames) frames = stdClean(frames) if graph: chart.drawGraphJob(frames) return pul.findBeats(frames, 4, 6)
def runOnClassified(data): for i in range(len(data)): aux = stdShannonRun(data[i][1], graph=False, reader=False) beats = pul.findBeats(aux, 4, 6) t1, t2 = pul.getT(aux, beats, flt.distinguish(aux), 0.01) t11 = pul.getT11(beats[0], flt.distinguish(aux)) t12 = pul.getT12(beats[0], flt.distinguish(aux)) data[i][1] = [[t11], [t12], [t1], [t2]] return data
def runOnClassified(data): for i in range(len(data)): aux = stdShannonRun(data[i][1], graph=False, reader=False) beats = pul.findBeats(aux, 4, 6) t1, t2 = pul.getT(aux, beats, flt.distinguish(aux), 0.01) t11 = pul.getT11(beats[0], flt.distinguish(aux)) t12 = pul.getT12(beats[0], flt.distinguish(aux)) data[i][1] = [[t11],[t12],[t1],[t2]] return data
def stdRun(path): waves = wave.loadWave(path) frames = wave.getSamples(waves) frames = stdClean(frames) return pul.findBeats(frames, 4, 6)