Import Fedora patch for byte-compiling errors wrt #312915 by artin Mokrejš and Sebast...
authorSamuli Suominen <ssuominen@gentoo.org>
Sat, 1 Oct 2011 10:22:12 +0000 (10:22 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Sat, 1 Oct 2011 10:22:12 +0000 (10:22 +0000)
Package-Manager: portage-2.2.0_alpha59/cvs/Linux x86_64

media-libs/aubio/ChangeLog
media-libs/aubio/Manifest
media-libs/aubio/aubio-0.3.2-r2.ebuild [new file with mode: 0644]
media-libs/aubio/files/aubio-0.3.2-multilib.patch
media-libs/aubio/files/aubio-0.3.2-numarray-gnuplot.patch [new file with mode: 0644]

index a605e21e0519824981d2b7dd9cbe8bb1bbf3674e..42c91fec6c59b0cec8e14bc5a010531785f4521a 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-libs/aubio
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/ChangeLog,v 1.17 2011/10/01 10:08:12 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/ChangeLog,v 1.18 2011/10/01 10:22:12 ssuominen Exp $
+
+*aubio-0.3.2-r2 (01 Oct 2011)
+
+  01 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> +aubio-0.3.2-r2.ebuild,
+  +files/aubio-0.3.2-numarray-gnuplot.patch:
+  Import Fedora patch for byte-compiling errors wrt #312915 by artin Mokrejš
+  and Sebastian Pipping
 
   01 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> aubio-0.3.2-r1.ebuild:
   Use python.eclass and set python2 as default wrt bugs #313523 and #385129
index ba5210e56a0954481dcd0edef8c08e5c1eb03438..c8d5cd24981df30f63b5157fda35f8c9f670bf9e 100644 (file)
@@ -1,19 +1,21 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-AUX aubio-0.3.2-multilib.patch 420 RMD160 bff07b86d296ad8de57252260c3790167c543474 SHA1 da7552530668096be8bf94036fa82b34e6bc6577 SHA256 ff264f47c7c1d35f703c28dce59053428015c616a7c43ddf3dbd8c21e806b16a
+AUX aubio-0.3.2-multilib.patch 343 RMD160 8c4125b93418d51b3b7bc053a8ee5212700b2c3d SHA1 9bbe830b89e4c49e4f5fba22e13a59e5a9a7392e SHA256 7cd14c5c7a9007f12b4fc53781c570a3b1e8990adf9f3f6461b51b7588349122
+AUX aubio-0.3.2-numarray-gnuplot.patch 11765 RMD160 e0a042d00e9c6d56594e7ac88c24958e9fbbf040 SHA1 d84e4f0a9b42af4881c930fdfacbe1a135e0859c SHA256 a06a76177f24d5e397e0ac79bf1ae97fe63f2f4d14670ecbcdd8826c3b6cbbb4
 DIST aubio-0.3.2.tar.gz 609006 RMD160 44e3bb8ab38aa715052466e7ae50123089914b5b SHA1 8ef7ccbf18a4fa6db712a9192acafc9c8d080978 SHA256 dc1387b048610a6141f523c27314b7a60bd299c3d6789c372445ddc6511512cd
 EBUILD aubio-0.3.2-r1.ebuild 1861 RMD160 ecce0d8e0e53f58a0bd00ffe77b4a03c09cde19b SHA1 0bcae942c1b37c54e53519bb08128f0150214ba2 SHA256 63168ceba80f4dba216bc85aa4caeaa90a2376ebbb33f2f0ccc7ab45aa8859bf
-MISC ChangeLog 2302 RMD160 667ec174ef8f6cdf0a4d8b107a334c8907b571ec SHA1 7023eccae6190a10cc6e52a47b389e627b8715d2 SHA256 3829285110ae728f6ff0aedda5908d1667d31ae47ae502d22e1524eb80e71d44
+EBUILD aubio-0.3.2-r2.ebuild 1908 RMD160 b0fd57a5d4acb92c7a0e76d49338b33387806d32 SHA1 0b9e1f49e07901d0456e2f35893c80916f74d19c SHA256 5a40865aa1a806c92644416a6e4947e8246627696013f5eaa4da423f3b19e634
+MISC ChangeLog 2559 RMD160 640a4d9950015755c293c5ae0f4e46ae78caf7ee SHA1 b17dec8d85bc0766ae894eae9c5f12f8ba50ff9c SHA256 3e2c2f01ede7eced16305968abb91a0ce1469ed6fd0a2233d7d3f1873f45265e
 MISC metadata.xml 161 RMD160 2738d17827a71b5ccbadae4c4f909d2b57d147b0 SHA1 90201ddb830142147774cc7b7b5178fbd0a9af0c SHA256 0ba191421eefd954d1efe9f6c3384e8c8d7455d35a7e79457272e1c29211b09e
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iQEcBAEBAgAGBQJOhuazAAoJEEdUh39IaPFN3/EIAJs5sH+DBBTaqd5KptRaaquW
-wojHEmKSEkZi+rsM9r4VCw8L9IIFVDlW6m8pTtlvckibuhY4RzWlOXPneKU8pCVy
-V6QZv+HzWv8ov76FsKTteophCC0zuBcbq41fQNTAVMiHu1nb7wHF2EWKeikpXrj3
-t+wbwWNNrHK2ujUYy3qMWZ1LAd33W4Ps0G0JXMHJ2lZI6q/0LuPh4jhyXewjosjx
-lKJ026/TMMWTMxdRe6RXB9l1mPbQwCn1dVW/j0yk/Vldeg2rLVoAhSCZ0/MzSarB
-9EYi7WFpUC7kS6kzxsy0js66sGjNYk4ciJPTQExtTtGmeX1nruFTwtHnPu213TA=
-=rxWV
+iQEcBAEBAgAGBQJOhun5AAoJEEdUh39IaPFNWksH/A3oO9KPoKMxEpmKASlx+MNi
+ydy9f4aiJTZ4CIm0XMvr44cRN5hngVKgvU23QA5TtAqpBzea7oCgXSOgK8Ezr3Og
+Sv8NRIfveTuv+B/IwBBOLlBya/zpYiI32njf0Rgl39WfI8mkGzKe4U7kdRCWwIOJ
+H7ZzH6Usit+J4/R6JQBa5jLq/GdlqEXvXgwSFG9EitnBolI6fZspoH/4QDILmUjy
+XZVp1ibuqHwV1pxlTy4AcAC5sAyvQ6GMhYEAbrZMBMlLimdZfgEdXMhpwNqHDDwr
+NMbTEBL1u1YVBzHmsIinnAeketTxGRBm9M7OCt6GeZJa9k5EX6Dhzbd3DzyvdEY=
+=xXs+
 -----END PGP SIGNATURE-----
diff --git a/media-libs/aubio/aubio-0.3.2-r2.ebuild b/media-libs/aubio/aubio-0.3.2-r2.ebuild
new file mode 100644 (file)
index 0000000..2eb36a3
--- /dev/null
@@ -0,0 +1,86 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/aubio/aubio-0.3.2-r2.ebuild,v 1.1 2011/10/01 10:22:11 ssuominen Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="2:2.6"
+
+inherit autotools eutils python
+
+DESCRIPTION="Library for audio labelling"
+HOMEPAGE="http://aubio.piem.org"
+SRC_URI="http://aubio.piem.org/pub/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="alsa doc jack lash static-libs"
+
+RDEPEND="sci-libs/fftw:3.0
+       media-libs/libsndfile
+       media-libs/libsamplerate
+       || ( dev-lang/python:2.7 dev-lang/python:2.6 )
+       alsa? ( media-libs/alsa-lib )
+       jack? ( media-sound/jack-audio-connection-kit )
+       lash? ( media-sound/lash )"
+DEPEND="${RDEPEND}
+       >=dev-lang/swig-1.3.0
+       dev-util/pkgconfig
+       doc? ( app-doc/doxygen virtual/latex-base )"
+
+pkg_setup() {
+       DOCS=( AUTHORS ChangeLog README TODO )
+
+       python_set_active_version 2
+       python_pkg_setup
+}
+
+src_prepare() {
+       epatch \
+               "${FILESDIR}"/${P}-multilib.patch \
+               "${FILESDIR}"/${P}-numarray-gnuplot.patch
+
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable static-libs static) \
+               $(use_enable jack) \
+               $(use_enable alsa) \
+               $(use_enable lash)
+}
+
+src_compile() {
+       default
+
+       if use doc; then
+               export VARTEXFONTS="${T}/fonts"
+               cd "${S}"/doc
+               doxygen user.cfg
+               doxygen devel.cfg
+               doxygen examples.cfg
+       fi
+}
+
+src_install() {
+       # `default` would be enough here if python.eclass supported EAPI=4
+       emake DESTDIR="${D}" install || die
+       dodoc "${DOCS[@]}"
+
+       doman doc/*.1
+       if use doc; then
+               mv doc/user/html doc/user/user
+               dohtml -r doc/user/user
+               mv doc/devel/html doc/devel/devel
+               dohtml -r doc/devel/devel
+               mv doc/examples/html doc/examples/examples
+               dohtml -r doc/examples/examples
+       fi
+
+       find "${ED}"usr -name '*.la' -exec rm -f {} +
+}
+
+pkg_postinst() { python_mod_optimize aubio; }
+pkg_postrm() { python_mod_cleanup aubio; }
index 65a5539e30cadb84ff6e96a4b0cb25d9a9921744..7464fad6cacbdef894a451cfde8776d8777dbedc 100644 (file)
@@ -1,5 +1,5 @@
---- python/aubio/Makefile.am.orig      2008-02-10 18:32:03.000000000 -0500
-+++ python/aubio/Makefile.am   2008-02-10 18:33:48.000000000 -0500
+--- python/aubio/Makefile.am
++++ python/aubio/Makefile.am
 @@ -68,7 +68,7 @@
        -L$(top_builddir)/ext -laubioext \
        -L$(top_builddir)/src -laubio
diff --git a/media-libs/aubio/files/aubio-0.3.2-numarray-gnuplot.patch b/media-libs/aubio/files/aubio-0.3.2-numarray-gnuplot.patch
new file mode 100644 (file)
index 0000000..b6c52ca
--- /dev/null
@@ -0,0 +1,330 @@
+--- python/aubio/aubioclass.py
++++ python/aubio/aubioclass.py
+@@ -42,8 +42,10 @@
+             self.file = new_aubio_sndfile_wo(model.file,filename)
+         else:
+             self.file = new_aubio_sndfile_ro(filename)
++        if self.file == None:
++            raise(ValueError, "failed opening file %s" % filename)
+     def __del__(self):
+-        del_aubio_sndfile(self.file)
++        if self.file != None: del_aubio_sndfile(self.file)
+     def info(self):
+         aubio_sndfile_info(self.file)
+     def samplerate(self):
+@@ -126,7 +128,7 @@
+         channels=1,samplerate=44100.,omode=aubio_pitchm_freq,yinthresh=0.1):
+         self.pitchp = new_aubio_pitchdetection(bufsize,hopsize,channels,
+                 samplerate,mode,omode)
+-      aubio_pitchdetection_set_yinthresh(self.pitchp,yinthresh)
++        aubio_pitchdetection_set_yinthresh(self.pitchp,yinthresh)
+         #self.filt     = filter(srate,"adsgn")
+     def __del__(self):
+         del_aubio_pitchdetection(self.pitchp)
+--- python/aubio/bench/onset.py
++++ python/aubio/bench/onset.py
+@@ -111,7 +111,7 @@
+               for i in self.vlist:
+                       gd.append(i['GD']) 
+                       fp.append(i['FP']) 
+-              d.append(Gnuplot.Data(fp, gd, with='linespoints', 
++              d.append(Gnuplot.Data(fp, gd, with_='linespoints', 
+                       title="%s %s" % (plottitle,i['mode']) ))
+       def plotplotroc(self,d,outplot=0,extension='ps'):
+@@ -147,7 +147,7 @@
+               for i in self.vlist:
+                       x.append(i['prec']) 
+                       y.append(i['recl']) 
+-              d.append(Gnuplot.Data(x, y, with='linespoints', 
++              d.append(Gnuplot.Data(x, y, with_='linespoints', 
+                       title="%s %s" % (plottitle,i['mode']) ))
+       def plotplotpr(self,d,outplot=0,extension='ps'):
+@@ -172,7 +172,7 @@
+               for i in self.vlist:
+                       x.append(i['thres']) 
+                       y.append(i['dist']) 
+-              d.append(Gnuplot.Data(x, y, with='linespoints', 
++              d.append(Gnuplot.Data(x, y, with_='linespoints', 
+                       title="%s %s" % (plottitle,i['mode']) ))
+       def plotplotfmeas(self,d,outplot="",extension='ps', title="F-measure"):
+@@ -205,7 +205,7 @@
+               for i in self.vlist:
+                       x.append(i[var]) 
+                       y.append(i['dist']) 
+-              d.append(Gnuplot.Data(x, y, with='linespoints', 
++              d.append(Gnuplot.Data(x, y, with_='linespoints', 
+                       title="%s %s" % (plottitle,i['mode']) ))
+       
+       def plotplotfmeasvar(self,d,var,outplot="",extension='ps', title="F-measure"):
+@@ -244,7 +244,7 @@
+               total = v['Torig']
+               for i in range(len(per)): per[i] /= total/100.
+-              d.append(Gnuplot.Data(val, per, with='fsteps', 
++              d.append(Gnuplot.Data(val, per, with_='fsteps', 
+                       title="%s %s" % (plottitle,v['mode']) ))
+               #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean))
+               #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (amean,samean))
+@@ -275,7 +275,7 @@
+               total = v['Torig']
+               for i in range(len(per)): per[i] /= total/100.
+-              d.append(Gnuplot.Data(val, per, with='fsteps', 
++              d.append(Gnuplot.Data(val, per, with_='fsteps', 
+                       title="%s %s" % (plottitle,v['mode']) ))
+               #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean))
+               #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (amean,samean))
+--- python/aubio/gnuplot.py
++++ python/aubio/gnuplot.py
+@@ -23,7 +23,7 @@
+ def audio_to_array(filename):
+       import aubio.aubioclass
+-        import numarray
++      from numpy import arange
+       hopsize  = 2048
+       filei    = aubio.aubioclass.sndfile(filename)
+       framestep = 1/(filei.samplerate()+0.)
+@@ -39,7 +39,7 @@
+               while (curpos < readsize):
+                       data.append(myvec.get(curpos,i))
+                       curpos+=1
+-      time = numarray.arange(len(data))*framestep
++      time = arange(len(data))*framestep
+       return time,data
+ def plot_audio(filenames, g, options):
+@@ -143,29 +143,29 @@
+ def downsample_audio(time,data,maxpoints=10000):
+   """ resample audio data to last only maxpoints """
+-  import numarray
++  from numpy import array, resize
+   length = len(time)
+   downsample = length/maxpoints
+   if downsample == 0: downsample = 1
+-  x = numarray.array(time).resize(length)[0:-1:downsample]
+-  y = numarray.array(data).resize(length)[0:-1:downsample]
++  x = resize(array(time),length)[0:-1:downsample]
++  y = resize(array(data),length)[0:-1:downsample]
+   return x,y
+ def make_audio_plot(time,data,maxpoints=10000):
+   """ create gnuplot plot from an audio file """
+   import Gnuplot, Gnuplot.funcutils
+   x,y = downsample_audio(time,data,maxpoints=maxpoints)
+-  return Gnuplot.Data(x,y,with='lines')
++  return Gnuplot.Data(x,y,with_='lines')
+ def make_audio_envelope(time,data,maxpoints=10000):
+   """ create gnuplot plot from an audio file """
+-  import numarray
++  from numpy import array
+   import Gnuplot, Gnuplot.funcutils
+   bufsize = 500
+-  x = [i.mean() for i in numarray.array(time).resize(len(time)/bufsize,bufsize)] 
+-  y = [i.mean() for i in numarray.array(data).resize(len(time)/bufsize,bufsize)] 
++  x = [i.mean() for i in resize(array(time), (len(time)/bufsize,bufsize))] 
++  y = [i.mean() for i in resize(array(data), (len(time)/bufsize,bufsize))] 
+   x,y = downsample_audio(x,y,maxpoints=maxpoints)
+-  return Gnuplot.Data(x,y,with='lines')
++  return Gnuplot.Data(x,y,with_='lines')
+ def gnuplot_addargs(parser):
+   """ add common gnuplot argument to OptParser object """
+--- python/aubio/onsetcompare.py
++++ python/aubio/onsetcompare.py
+@@ -106,7 +106,7 @@
+     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
+--- python/aubio/task/beat.py
++++ python/aubio/task/beat.py
+@@ -247,7 +247,7 @@
+       def plot(self,oplots,results):
+               import Gnuplot
+-              oplots.append(Gnuplot.Data(results,with='linespoints',title="auto"))
++              oplots.append(Gnuplot.Data(results,with_='linespoints',title="auto"))
+       def plotplot(self,wplot,oplots,outplot=None,extension=None,xsize=1.,ysize=1.,spectro=False):
+               import Gnuplot
+@@ -258,5 +258,5 @@
+               #f = make_audio_plot(time,data)
+               g = gnuplot_create(outplot=outplot, extension=extension)
+-              oplots = [Gnuplot.Data(self.gettruth(),with='linespoints',title="orig")] + oplots
++              oplots = [Gnuplot.Data(self.gettruth(),with_='linespoints',title="orig")] + oplots
+               g.plot(*oplots)
+--- python/aubio/task/notes.py
++++ python/aubio/task/notes.py
+@@ -92,18 +92,17 @@
+               return now, onset, freq, ifreq 
+       def plot(self,now,onset,freq,ifreq,oplots):
+-              import numarray
+               import Gnuplot
+-              oplots.append(Gnuplot.Data(now,freq,with='lines',
++              oplots.append(Gnuplot.Data(now,freq,with_='lines',
+                       title=self.params.pitchmode))
+-              oplots.append(Gnuplot.Data(now,ifreq,with='lines',
++              oplots.append(Gnuplot.Data(now,ifreq,with_='lines',
+                       title=self.params.pitchmode))
+               temponsets = []
+               for i in onset:
+                       temponsets.append(i*1000)
+-              oplots.append(Gnuplot.Data(now,temponsets,with='impulses',
++              oplots.append(Gnuplot.Data(now,temponsets,with_='impulses',
+                       title=self.params.pitchmode))
+       def plotplot(self,wplot,oplots,outplot=None,multiplot = 0):
+@@ -117,10 +116,10 @@
+               # check if ground truth exists
+               #timet,pitcht = self.gettruth()
+               #if timet and pitcht:
+-              #       oplots = [Gnuplot.Data(timet,pitcht,with='lines',
++              #       oplots = [Gnuplot.Data(timet,pitcht,with_='lines',
+               #               title='ground truth')] + oplots
+-              t = Gnuplot.Data(0,0,with='impulses') 
++              t = Gnuplot.Data(0,0,with_='impulses') 
+               g = gnuplot_init(outplot)
+               g('set title \'%s\'' % (re.sub('.*/','',self.input)))
+--- python/aubio/task/onset.py
++++ python/aubio/task/onset.py
+@@ -92,7 +92,7 @@
+               import Gnuplot, Gnuplot.funcutils
+               import aubio.txtfile
+               import os.path
+-              import numarray
++              from numpy import arange, array, ones
+               from aubio.onsetcompare import onset_roc
+               x1,y1,y1p = [],[],[]
+@@ -102,8 +102,8 @@
+               self.lenofunc = len(ofunc) 
+               self.maxofunc = max(ofunc)
+               # onset detection function 
+-              downtime = numarray.arange(len(ofunc))*self.params.step
+-              oplot.append(Gnuplot.Data(downtime,ofunc,with='lines',title=self.params.onsetmode))
++              downtime = arange(len(ofunc))*self.params.step
++              oplot.append(Gnuplot.Data(downtime,ofunc,with_='lines',title=self.params.onsetmode))
+               # detected onsets
+               if not nplot:
+@@ -111,11 +111,11 @@
+                               x1.append(i[0]*self.params.step)
+                               y1.append(self.maxofunc)
+                               y1p.append(-self.maxofunc)
+-                      #x1 = numarray.array(onsets)*self.params.step
+-                      #y1 = self.maxofunc*numarray.ones(len(onsets))
++                      #x1 = array(onsets)*self.params.step
++                      #y1 = self.maxofunc*ones(len(onsets))
+                       if x1:
+-                              oplot.append(Gnuplot.Data(x1,y1,with='impulses'))
+-                              wplot.append(Gnuplot.Data(x1,y1p,with='impulses'))
++                              oplot.append(Gnuplot.Data(x1,y1,with_='impulses'))
++                              wplot.append(Gnuplot.Data(x1,y1p,with_='impulses'))
+               oplots.append((oplot,self.params.onsetmode,self.maxofunc))
+@@ -126,9 +126,9 @@
+                       self.title = "" #"(no ground truth)"
+               else:
+                       t_onsets = aubio.txtfile.read_datafile(datafile)
+-                      x2 = numarray.array(t_onsets).resize(len(t_onsets))
+-                      y2 = self.maxofunc*numarray.ones(len(t_onsets))
+-                      wplot.append(Gnuplot.Data(x2,y2,with='impulses'))
++                      x2 = array(t_onsets).resize(len(t_onsets))
++                      y2 = self.maxofunc*ones(len(t_onsets))
++                      wplot.append(Gnuplot.Data(x2,y2,with_='impulses'))
+                       
+                       tol = 0.050 
+--- python/aubio/task/pitch.py
++++ python/aubio/task/pitch.py
+@@ -156,7 +156,7 @@
+               time = [ (i+self.params.pitchdelay)*self.params.step for i in range(len(pitch)) ]
+               pitch = [aubio_freqtomidi(i) for i in pitch]
+-              oplots.append(Gnuplot.Data(time,pitch,with='lines',
++              oplots.append(Gnuplot.Data(time,pitch,with_='lines',
+                       title=self.params.pitchmode))
+               titles.append(self.params.pitchmode)
+@@ -170,7 +170,7 @@
+               if truth:
+                       timet,pitcht = self.gettruth()
+                       if timet and pitcht:
+-                              oplots = [Gnuplot.Data(timet,pitcht,with='lines',
++                              oplots = [Gnuplot.Data(timet,pitcht,with_='lines',
+                                       title='ground truth')] + oplots
+               g = gnuplot_create(outplot=outplot, extension=extension)
+--- python/aubiofilter-notes
++++ python/aubiofilter-notes
+@@ -78,7 +78,7 @@
+         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)
+--- python/aubionotes
++++ python/aubionotes
+@@ -4,7 +4,6 @@
+     import aubio.aubioclass
+     import aubio.median
+-    #from numarray import around
+     from math import floor
+     hopsize   = 512
+     bufsize   = 4096
+--- python/aubioplot-notes
++++ python/aubioplot-notes
+@@ -18,7 +18,7 @@
+ 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 """
+--- python/aubioweb.py
++++ python/aubioweb.py
+@@ -11,7 +11,7 @@
+ 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.
+--- python/aubio/plot/keyboard.py
++++ python/aubio/plot/keyboard.py
+@@ -30,8 +30,8 @@
+   yb      = [y0+(y1-y0)*2/3. for i in range(len(xb))]
+   ybdelta = [(y1-y0)*1/3. for i in range(len(xb))]
+-  whites  = Gnuplot.Data(xw,yw,xwdelta,ywdelta,with = 'boxxyerrorbars')
+-  blacks  = Gnuplot.Data(xb,yb,xbdelta,ybdelta,with = 'boxxyerrorbars fill solid')
++  whites  = Gnuplot.Data(xw,yw,xwdelta,ywdelta,with_ = 'boxxyerrorbars')
++  blacks  = Gnuplot.Data(xb,yb,xbdelta,ybdelta,with_ = 'boxxyerrorbars fill solid')
+   return blacks,whites