Changeset 61680aa for python/aubio


Ignore:
Timestamp:
Dec 14, 2005, 2:42:45 PM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
7473074
Parents:
4b1e7e7
Message:

correct default bufsize, fix function level import
correct default bufsize, fix function level import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/onsetcompare.py

    r4b1e7e7 r61680aa  
    7373
    7474def notes_roc (la, lb, eps):
    75     from numarray import *
     75    from numarray import transpose, add, resize
    7676    """ creates a matrix of size len(la)*len(lb) then look for hit and miss
    7777    in it within eps tolerance windows """
     
    7979    m = len(la)
    8080    n = len(lb)
    81     x =           resize(la[:,0],(n,m))
    82     y = transpose(resize(lb[:,0],(m,n)))
     81    x =           resize(la[:][0],(n,m))
     82    y = transpose(resize(lb[:][0],(m,n)))
    8383    teps =  (abs(x-y) <= eps[0])
    84     x =           resize(la[:,1],(n,m))
    85     y = transpose(resize(lb[:,1],(m,n)))
     84    x =           resize(la[:][1],(n,m))
     85    y = transpose(resize(lb[:][1],(m,n)))
    8686    tpitc = (abs(x-y) <= eps[1])
    8787    res = teps * tpitc
Note: See TracChangeset for help on using the changeset viewer.