return l
def notes_roc (la, lb, eps):
- from numarray import *
+ from numarray import transpose, add, resize
""" creates a matrix of size len(la)*len(lb) then look for hit and miss
in it within eps tolerance windows """
gdn,fpw,fpg,fpa,fdo,fdp = 0,0,0,0,0,0
m = len(la)
n = len(lb)
- x = resize(la[:,0],(n,m))
- y = transpose(resize(lb[:,0],(m,n)))
+ x = resize(la[:][0],(n,m))
+ y = transpose(resize(lb[:][0],(m,n)))
teps = (abs(x-y) <= eps[0])
- x = resize(la[:,1],(n,m))
- y = transpose(resize(lb[:,1],(m,n)))
+ x = resize(la[:][1],(n,m))
+ y = transpose(resize(lb[:][1],(m,n)))
tpitc = (abs(x-y) <= eps[1])
res = teps * tpitc
res = add.reduce(res,axis=0)
complexdomain|hfc|phase|specdiff|energy|kl|mkl|dual")
parser.add_option("-B","--bufsize",
action="store", dest="bufsize", default=512,
- help="buffer size [default=1024]")
+ help="buffer size [default=512]")
parser.add_option("-H","--hopsize",
action="store", dest="hopsize", default=256,
help="overlap size [default=256]")