Ignore:
Timestamp:
Mar 29, 2005, 5:46:05 PM (20 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:
19b56b0
Parents:
20f9748
Message:

updated aubiocompare-onset and onsetcompare.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubiocompare-onset

    r20f9748 r7445aea  
    6161fileo=None;filec=None;vmode=None;dmode=None;delay=0.
    6262# default tolerance is 50 ms
    63 tol = 0.050
     63#tol = 0.050
     64tol = 0.048
    6465
    6566while len(sys.argv) >=2:
     
    7172    if option == '-d': dmode = 'debug'
    7273    if option == '-D': delay = float(sys.argv[1]); del sys.argv[1]
     74    if option == '-tol': tol = float(sys.argv[1]); del sys.argv[1]
    7375
    7476# arguments required
     
    8183
    8284# delay onsets as required with -D
    83 for i in range(len(lres)):
    84     lres[i] = lres[i] + delay
     85if delay:
     86    for i in range(len(lres)):
     87        lres[i] = lres[i] + delay
    8588# compute errors types
    8689ok, bad, missed, total, hits = onset_roc(ltru,lres,tol)
Note: See TracChangeset for help on using the changeset viewer.