source: python/aubio/task/params.py @ 650e39b

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

update default parameters
update default parameters

  • Property mode set to 100644
File size: 936 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=10.
29                self.pitchmax=20000.
30                self.dcthreshold = -1.
31                self.omode = aubio_pitchm_freq
32                self.verbose   = False
33
Note: See TracBrowser for help on using the repository browser.