Changeset fe163ad for python/aubiopitch
- Timestamp:
- Oct 15, 2009, 6:54:23 PM (15 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:
- 515c7b2
- Parents:
- cd77c15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubiopitch
rcd77c15 rfe163ad 18 18 help="input sound file") 19 19 parser.add_option("-m","--mode", 20 action="store", dest="mode", default=' mcomb',20 action="store", dest="mode", default='yinfft', 21 21 help="pitch detection mode [default=mcomb] \ 22 22 mcomb|yin|fcomb|schmitt") 23 parser.add_option("-u","--units", action="callback", 24 callback=check_pitchm_mode, dest="omode", 25 default=aubio_pitchm_freq, 23 parser.add_option("-u","--units", 24 action="store", dest="omode", default="freq", 26 25 help="output pitch in units [default=Hz] \ 27 26 freq|midi|cent|bin") … … 78 77 (options, args) = parser.parse_args() 79 78 if not options.bufsize: 80 if options.mode == aubio_pitch_yin: options.bufsize = 102481 if options.mode == aubio_pitch_schmitt: options.bufsize = 204882 if options.mode == aubio_pitch_mcomb: options.bufsize = 409683 if options.mode == aubio_pitch_fcomb: options.bufsize = 409679 if options.mode == "yin": options.bufsize = 1024 80 if options.mode == "schmitt": options.bufsize = 2048 81 if options.mode == "mcomb": options.bufsize = 4096 82 if options.mode == "fcomb": options.bufsize = 4096 84 83 else: options.bufsize = 2048 85 84 if not options.hopsize: … … 106 105 if options.pitchmax: params.pitchmax = int(options.pitchmax) 107 106 if options.pitchmin: params.pitchmin = int(options.pitchmin) 108 if options.omode: params.omode = int(options.omode)109 107 #mintol = float(options.mintol)*step 110 108 # default take back system delay
Note: See TracChangeset
for help on using the changeset viewer.