source: python/aubio/task/params.py @ 90bcdaa

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 90bcdaa was 4798fdf, checked in by Paul Brossier <piem@altern.org>, 19 years ago

update params and pitch
update params and pitch

  • Property mode set to 100644
File size: 961 bytes
Line 
1from aubio.aubioclass import aubio_pitchm_freq
2
3class taskparams(object):
4        """ default parameters for task classes """
5        def __init__(self,input=None,output=None):
6                self.silence = -90
7                self.derivate = False
8                self.localmin = False
9                self.delay = 4.
10                self.storefunc = False
11                self.bufsize = 512
12                self.hopsize = 256
13                self.pbufsize = 2048
14                self.phopsize =  512
15                self.samplerate = 44100
16                self.tol = 0.05
17                self.mintol = 0.0
18                self.step = float(self.hopsize)/float(self.samplerate)
19                self.threshold = 0.1
20                self.onsetmode = 'dual'
21                self.pitchmode = 'yin'
22                # best threshold for yin monophonic Mirex04 (depth of f0)
23                self.yinthresh = 0.15 
24                # best thresh for yinfft monophonic Mirex04 (tradeoff sil/gd)
25                # also best param for yinfft polyphonic Mirex04
26                self.yinfftthresh = 0.85 
27                self.pitchsmooth = 0
28                self.pitchmin=20.
29                self.pitchmax=20000.
30                self.pitchdelay = -0.5
31                self.dcthreshold = -1.
32                self.omode = aubio_pitchm_freq
33                self.verbose   = False
34
Note: See TracBrowser for help on using the repository browser.