master
Sebastien Bourdeauducq 2020-01-12 19:32:38 +08:00
父節點 dcd8babc67
當前提交 6d0d2cb253
共有 1 個檔案被更改,包括 2 行新增2 行删除

查看文件

@ -66,8 +66,8 @@ class Stabilizer:
true_i, amplitude = parabolic(spectrum, i)
freq = 0.5 * self.freq_sample * true_i / len(spectrum)
if amplitude > threshold:
tuning = (freq - target_freq)*k
if amplitude > self.amp_threshold:
tuning = (freq - self.freq_target)*self.k
else:
tuning = 0.0
self.tuner.set(tuning)