Changeset 9cf2833 for python/aubioonset
- Timestamp:
- May 22, 2005, 1:50:49 PM (20 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified python/aubioonset ¶
redca23f r9cf2833 36 36 action="store", dest="outplot", default=None, 37 37 help="be quiet [default=None]") 38 parser.add_option("-M","--mintol", 39 action="store", dest="mintol", default=-70, 40 help="mintol [default=0.48]") 38 41 (options, args) = parser.parse_args() 39 42 if not len(args): … … 50 53 #onsets = getonsets(filename,threshold,silence,mode=options.mode) 51 54 onsets = 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 59 last = -10. 60 mintol = float(options.mintol) 61 for 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.