1
0
Fork 0
master
Sebastien Bourdeauducq 2020-01-12 19:32:38 +08:00
commit 6d0d2cb253
1 arquivos alterados com 2 adições e 2 exclusões

Ver arquivo

@ -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)