Changeset 4798fdf for python/aubiopitch
- Timestamp:
- Apr 20, 2006, 2:46:42 PM (19 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:
- 9bec8fe
- Parents:
- 650e39b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubiopitch
r650e39b r4798fdf 40 40 parser.add_option("-D","--delay", 41 41 action="store", dest="delay", 42 help="number of seconds to take back [default=system]\ 43 default system delay is 2*hopsize/samplerate") 44 parser.add_option("-L","--localmin", 45 action="store_true", dest="localmin", default=False, 46 help="use local minima after peak detection") 47 parser.add_option("-c","--cut", 48 action="store_true", dest="cut", default=False, 49 help="cut input sound file at detected labels \ 50 best used with option -L") 42 help="number of seconds frames to take back [default=0]") 43 parser.add_option("-S","--smoothing", 44 action="store", dest="smoothing", default=False, 45 help="use a median filter of N frames [default=0]") 46 parser.add_option("-M","--maximum", 47 action="store", dest="pitchmax", default=False, 48 help="maximum pitch value to look for (Hz) [default=20000]") 49 parser.add_option("-l","--minimum", 50 action="store", dest="pitchmin", default=False, 51 help="minimum pitch value to look for (Hz) [default=20]") 51 52 # to be implemented 52 53 parser.add_option("-n","--note", … … 56 57 parser.add_option("-p","--plot", 57 58 action="store_true", dest="plot", default=False, 58 help=" NOT IMPLEMENTED draw plot")59 help="draw plot of the pitch track") 59 60 parser.add_option("-O","--outplot", 60 61 action="store", dest="outplot", default=None, 61 help=" NOT IMPLEMENTED save plot to output.{ps,png}")62 help="save the plot to output.{ps,png,svg} instead of displaying it") 62 63 parser.add_option("-v","--verbose", 63 64 action="store_true", dest="verbose", default=False, 64 help="make lots of noise [default]")65 help="make lots of noise") 65 66 parser.add_option("-q","--quiet", 66 67 action="store_false", dest="verbose", default=False, … … 93 94 params.silence = float(options.silence) 94 95 params.verbose = options.verbose 96 if options.smoothing: params.pitchsmooth = int(options.smoothing) 97 if options.pitchmax: params.pitchmax = int(options.pitchmax) 98 if options.pitchmin: params.pitchmin = int(options.pitchmin) 95 99 #mintol = float(options.mintol)*step 96 100 # default take back system delay 97 if options.delay: delay = float(options.delay) 98 else: delay = 2./params.step 101 if options.delay: params.pitchdelay = float(options.delay) 99 102 100 103 if options.note:
Note: See TracChangeset
for help on using the changeset viewer.