diff options
author | John Glover <j@johnglover.net> | 2012-10-03 09:55:01 +0200 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2012-10-03 09:55:01 +0200 |
commit | 210043cd1e019833539e657888fb4291295de0fe (patch) | |
tree | e378eac5be2394a6d7752cf0fdac96a444063928 | |
parent | f3052e2b09449745843c5858e9524a87e73663de (diff) | |
download | simpl-210043cd1e019833539e657888fb4291295de0fe.tar.gz simpl-210043cd1e019833539e657888fb4291295de0fe.tar.bz2 simpl-210043cd1e019833539e657888fb4291295de0fe.zip |
[mq] Change case of two-way mismatch function name.
-rw-r--r-- | simpl/mq.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/simpl/mq.py b/simpl/mq.py index 86006ea..7a7d8d8 100644 --- a/simpl/mq.py +++ b/simpl/mq.py @@ -13,8 +13,8 @@ def best_match(f, candidates): return pos -def TWM(peaks, f_min=0.0, f_max=3000.0, f_step=20.0): - # TWM parameters +def twm(peaks, f_min=0.0, f_max=3000.0, f_step=20.0): + # twm parameters p = 0.5 q = 1.4 r = 0.5 @@ -115,7 +115,7 @@ class MQPeakDetection(simpl.PeakDetection): # TODO: average should not include frames corresponding to unvoiced # speech, ie noisy frames self._freq_estimates.append( - TWM(self._current_peaks, f_min=self._fundamental, + twm(self._current_peaks, f_min=self._fundamental, f_step=self._fundamental) ) if len(self._freq_estimates) > self._avg_freq_frames: |