Changeset e7a7794


Ignore:
Timestamp:
Sep 26, 2009, 6:34:28 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
9a91031
Parents:
342e3807
Message:

python: finish getting rid of numarray

Location:
python
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/onsetcompare.py

    r342e3807 re7a7794  
    107107
    108108def notes_roc (la, lb, eps):
    109     from numarray import transpose, add, resize
     109    from numpy import transpose, add, resize
    110110    """ creates a matrix of size len(la)*len(lb) then look for hit and miss
    111111    in it within eps tolerance windows """
  • python/aubio/plot/notes.py

    r342e3807 re7a7794  
    4343
    4444def plotnote_withends(la,plot_title=None) :
    45         import numarray
     45        from numpy import array
    4646        import Gnuplot, Gnuplot.funcutils
    4747        d=[]
    48         x_widths = numarray.array(la[:,1]-la[:,0])/2.
     48        x_widths = array(la[:,1]-la[:,0])/2.
    4949        d.append(Gnuplot.Data(
    5050                la[:,0]+x_widths,               # x centers
     
    5858def plotnote_withoutends(la,plot_title=None) :
    5959        """ bug: fails drawing last note """
    60         import numarray
     60        from numpy import array
    6161        import Gnuplot, Gnuplot.funcutils
    6262        d=[]
    63         x_widths = numarray.array(la[1:,0]-la[:-1,0])/2;
     63        x_widths = array(la[1:,0]-la[:-1,0])/2;
    6464        d.append(Gnuplot.Data(
    6565                la[:-1,0]+x_widths,             # x centers
  • python/aubiodiffs-onset

    r342e3807 re7a7794  
    44
    55print aubio.__LICENSE__ for the terms of use
    6 
    7 or see LICENSE.txt in the numarray installation directory.
    86"""
    97__LICENSE__ = """\
  • python/aubiofilter-notes

    r342e3807 re7a7794  
    7979        from aubio import notefilter,txtfile,gnuplot
    8080        """ load midi and raw data """
    81         from numarray import array
     81        from numpy import array
    8282        notelist = array(txtfile.read_datafile(input))
    8383        """ filter it out """
  • python/aubionotes

    r342e3807 re7a7794  
    55    import aubio.aubioclass
    66    import aubio.median
    7     #from numarray import around
    87    from math import floor
    98    hopsize   = 512
  • python/aubioplot-notes

    r342e3807 re7a7794  
    1919    from aubio.txtfile import read_datafile
    2020    from aubio.gnuplot import plotnote,plotnote_do
    21     from numarray import array
     21    from numpy import array
    2222    filein,fileout = parse_args(sysargs)
    2323    #print 'checking', fileerr, 'against', fileorg
  • python/aubioweb.py

    r342e3807 re7a7794  
    1212vorbis-tools (oggenc)
    1313python-gnuplot
    14 python-numarray
     14python-numpy
    1515
    1616Try the command line tools in aubio/python to test your installation.
Note: See TracChangeset for help on using the changeset viewer.