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
|
Rev | Line | |
---|
[13c3fba] | 1 | from aubio.aubioclass import aubio_pitchm_freq |
---|
| 2 | |
---|
| 3 | class 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 |
---|
[9abd0f3] | 28 | self.pitchmin=10. |
---|
| 29 | self.pitchmax=20000. |
---|
[13c3fba] | 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.