ref: 61680aa127dca6cd6c4f043433a2301063c639cb
parent: 4b1e7e79aaeafa5ee853c5202262b4ad87d56ba6
author: Paul Brossier <piem@altern.org>
date: Wed Dec 14 08:42:45 EST 2005
correct default bufsize, fix function level import correct default bufsize, fix function level import
--- a/python/aubio/onsetcompare.py
+++ b/python/aubio/onsetcompare.py
@@ -72,17 +72,17 @@
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)
--- a/python/aubiocut
+++ b/python/aubiocut
@@ -21,7 +21,7 @@
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]")