Changeset 855ed0a
- Timestamp:
- Aug 14, 2005, 5:21:19 AM (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:
- 13d57e8
- Parents:
- a3e24ec
- Location:
- python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/aubioclass.py
ra3e24ec r855ed0a 192 192 framestep = hopsize/(filei.samplerate()+0.) 193 193 channels = filei.channels() 194 newname = "%s%f%s" % ("/tmp/",0.0000000,filein[-4:]) 194 newname = "%s%s%f%s%s" % (filein.split(".")[0].split("/")[-1],".", 195 frameread*framestep,".",filein.split(".")[-1]) 195 196 fileo = sndfile(newname,model=filei) 196 197 myvec = fvec(hopsize,channels) -
python/aubiocut
ra3e24ec r855ed0a 21 21 complexdomain|hfc|phase|specdiff|energy|kl|mkl|dual") 22 22 parser.add_option("-B","--bufsize", 23 action="store", dest="bufsize", default= 1024,23 action="store", dest="bufsize", default=512, 24 24 help="buffer size [default=1024]") 25 25 parser.add_option("-H","--hopsize", … … 38 38 action="store", dest="delay", 39 39 help="number of seconds to take back [default=system]\ 40 default system delay is 2*hopsize/samplerate")40 default system delay is 3*hopsize/samplerate") 41 41 parser.add_option("-L","--localmin", 42 42 action="store_true", dest="localmin", default=False, … … 54 54 parser.add_option("-z","--zerocross", 55 55 action="store", dest="zerothres", default=0.008, 56 help="zero-crossing threshold for slicing [default=0.00 8]")56 help="zero-crossing threshold for slicing [default=0.00008]") 57 57 # plotting functions 58 58 parser.add_option("-p","--plot", … … 86 86 step = float(samplerate)/float(hopsize) 87 87 threshold = float(options.threshold) 88 zerothres = float(options.zerothres) 88 89 silence = float(options.silence) 89 90 mintol = float(options.mintol)*step 90 91 # default take back system delay 91 92 if options.delay: delay = float(options.delay) 92 else: delay = 2./step93 else: delay = 3./step 93 94 94 95 if options.beat:
Note: See TracChangeset
for help on using the changeset viewer.