Changeset 3027c6e for python/aubio/task
- Timestamp:
- Oct 8, 2009, 8:59:23 PM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 8802f92
- Parents:
- 61316a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/task/pitch.py
r61316a6 r3027c6e 8 8 task.__init__(self,input,params=params) 9 9 self.shortlist = [0. for i in range(self.params.pitchsmooth)] 10 if self.params.pitchmode == 'yin fft':11 yinthresh = self.params.yinfftthresh12 elif self.params.pitchmode == 'yin ':13 yinthresh = self.params.yinthresh14 else: 15 yinthresh= 0.16 self.pitchdet 10 if self.params.pitchmode == 'yin': 11 tolerance = self.params.yinthresh 12 elif self.params.pitchmode == 'yinfft': 13 tolerance = self.params.yinfftthresh 14 else: 15 tolerance = 0. 16 self.pitchdet = pitchdetection(mode=get_pitch_mode(self.params.pitchmode), 17 17 bufsize=self.params.bufsize, 18 18 hopsize=self.params.hopsize, … … 20 20 samplerate=self.srate, 21 21 omode=self.params.omode, 22 yinthresh=yinthresh)22 tolerance = tolerance) 23 23 24 24 def __call__(self):
Note: See TracChangeset
for help on using the changeset viewer.