source: python/aubio/task/params.py @ 1e7ef7c

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 1e7ef7c 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
RevLine 
[13c3fba]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):
[9abd0f3]6                self.silence = -90
[13c3fba]7                self.derivate = False
8                self.localmin = False
9                self.delay = 4.
10                self.storefunc = False
11                self.bufsize = 512
12                self.hopsize = 256
[e2b1bda]13                self.pbufsize = 2048
14                self.phopsize =  512
[13c3fba]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'
[9abd0f3]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 
[e2b1bda]27                self.pitchsmooth = 0
[4798fdf]28                self.pitchmin=20.
[9abd0f3]29                self.pitchmax=20000.
[4798fdf]30                self.pitchdelay = -0.5
[13c3fba]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.