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 stdShannonRun(path, graph=True, reader=True): if reader: frames = files.reader(path) else: frames = path # if graph: # chart.drawGraphJob(frames) frames = flt.halfRate(frames) frames = flt.norm(frames) frames = stdMovArg(frames) frames = flt.shannon(frames) frames = flt.avgShannon(frames, 40, 20) if graph: chart.drawGraphJob(frames) # return pul.findBeats(frames, 4, 6) return frames