Changeset 9cf2833 for python/aubioonset


Ignore:
Timestamp:
May 22, 2005, 1:50:49 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:
23a44c1
Parents:
edca23f
Message:

evaluate doubled detection
evaluate doubled detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubioonset

    redca23f r9cf2833  
    3636                          action="store", dest="outplot", default=None,
    3737                          help="be quiet [default=None]")
     38        parser.add_option("-M","--mintol",
     39                          action="store", dest="mintol", default=-70,
     40                          help="mintol [default=0.48]")
    3841        (options, args) = parser.parse_args()
    3942        if not len(args):
     
    5053#onsets = getonsets(filename,threshold,silence,mode=options.mode)
    5154onsets = getonsetscausal(filename,threshold,silence,mode=options.mode)
    52 for i in onsets: print i*512./44100.
     55
     56# print all
     57#for i in onsets: print i*512./44100.
     58# prune doubled
     59last = -10.
     60mintol   = float(options.mintol)
     61for i in onsets:
     62        new = i*512./44100.
     63        if (new - last > mintol): print "%f" % new
     64        last = new
Note: See TracChangeset for help on using the changeset viewer.