Changeset 855ed0a


Ignore:
Timestamp:
Aug 14, 2005, 5:21:19 AM (16 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
13d57e8
Parents:
a3e24ec
Message:

updated default parameters, fixed 0.000.wav creation

Location:
python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    ra3e24ec r855ed0a  
    192192    framestep = hopsize/(filei.samplerate()+0.)
    193193    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])
    195196    fileo     = sndfile(newname,model=filei)
    196197    myvec     = fvec(hopsize,channels)
  • python/aubiocut

    ra3e24ec r855ed0a  
    2121                          complexdomain|hfc|phase|specdiff|energy|kl|mkl|dual")
    2222        parser.add_option("-B","--bufsize",
    23                           action="store", dest="bufsize", default=1024,
     23                          action="store", dest="bufsize", default=512,
    2424                          help="buffer size [default=1024]")
    2525        parser.add_option("-H","--hopsize",
     
    3838                          action="store", dest="delay", 
    3939                          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")
    4141        parser.add_option("-L","--localmin",
    4242                          action="store_true", dest="localmin", default=False,
     
    5454        parser.add_option("-z","--zerocross",
    5555                          action="store", dest="zerothres", default=0.008,
    56                           help="zero-crossing threshold for slicing [default=0.008]")
     56                          help="zero-crossing threshold for slicing [default=0.00008]")
    5757        # plotting functions
    5858        parser.add_option("-p","--plot",
     
    8686step       = float(samplerate)/float(hopsize)
    8787threshold  = float(options.threshold)
     88zerothres  = float(options.zerothres)
    8889silence    = float(options.silence)
    8990mintol     = float(options.mintol)*step
    9091# default take back system delay
    9192if options.delay: delay = float(options.delay)
    92 else:             delay = 2./step
     93else:             delay = 3./step
    9394
    9495if options.beat:
Note: See TracChangeset for help on using the changeset viewer.