return orig, missed, merged, expc, bad, doubled, l, labs
def notes_roc (la, lb, eps):
- from numarray import transpose, add, resize
+ from numpy 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
def plotnote_withends(la,plot_title=None) :
- import numarray
+ from numpy import array
import Gnuplot, Gnuplot.funcutils
d=[]
- x_widths = numarray.array(la[:,1]-la[:,0])/2.
+ x_widths = array(la[:,1]-la[:,0])/2.
d.append(Gnuplot.Data(
la[:,0]+x_widths, # x centers
la[:,2], # y centers
def plotnote_withoutends(la,plot_title=None) :
""" bug: fails drawing last note """
- import numarray
+ from numpy import array
import Gnuplot, Gnuplot.funcutils
d=[]
- x_widths = numarray.array(la[1:,0]-la[:-1,0])/2;
+ x_widths = array(la[1:,0]-la[:-1,0])/2;
d.append(Gnuplot.Data(
la[:-1,0]+x_widths, # x centers
la[:-1,1], # y centers
"""Copyright (C) 2004 Paul Brossier <piem@altern.org>
print aubio.__LICENSE__ for the terms of use
-
-or see LICENSE.txt in the numarray installation directory.
"""
__LICENSE__ = """\
Copyright (C) 2004 Paul Brossier <piem@altern.org>
from aubio import notefilter,txtfile,gnuplot
""" load midi and raw data """
- from numarray import array
+ from numpy import array
notelist = array(txtfile.read_datafile(input))
""" filter it out """
notelist_filtered = notefilter.segraw_onsets4(notelist,winlength,eps)
import aubio.aubioclass
import aubio.median
- #from numarray import around
from math import floor
hopsize = 512
bufsize = 4096
def main (sysargs) :
from aubio.txtfile import read_datafile
from aubio.gnuplot import plotnote,plotnote_do
- from numarray import array
+ from numpy import array
filein,fileout = parse_args(sysargs)
#print 'checking', fileerr, 'against', fileorg
""" load midi and raw data """
sndfile-programs (sndfile-info)
vorbis-tools (oggenc)
python-gnuplot
-python-numarray
+python-numpy
Try the command line tools in aubio/python to test your installation.