source: python/aubio/task/params.py @ 16bd78a

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 16bd78a was fe163ad, checked in by Paul Brossier <piem@piem.org>, 15 years ago

src/pitch: use a string to set pitch method, add a new function to set pitch unit, keep pitch enums private, update pitch methods where they are used

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