class bench:
""" class to run benchmarks on directories """
def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
- from aubio.tasks import taskparams
+ from aubio.task.params import taskparams
self.datadir = datadir
# path to write results path to
self.resdir = resdir
print self.params.step*foo[0]
def eval(self,inputdata,ftru,mode='roc',vmode=''):
- from txtfile import read_datafile
- from onsetcompare import onset_roc, onset_diffs, onset_rocloc
+ from aubio.txtfile import read_datafile
+ from aubio.onsetcompare import onset_roc, onset_diffs, onset_rocloc
ltru = read_datafile(ftru,depth=0)
lres = []
for i in range(len(inputdata)): lres.append(inputdata[i][0]*self.params.step)
#! /usr/bin/python
-from aubio.tasks import *
+from aubio.task import *
-from benchonset import mmean, stdev, benchonset
+from aubio.bench.onset import mmean, stdev, benchonset
class mybenchonset(benchonset):
#! /usr/bin/python
from aubio.bench.node import *
-from aubio.tasks import *
+from aubio.task import *
class benchpitch(bench):